diff --git a/example/news-interactions/CHANGELOG.md b/example/news-interactions/CHANGELOG.md deleted file mode 100644 index f63172151..000000000 --- a/example/news-interactions/CHANGELOG.md +++ /dev/null @@ -1,85 +0,0 @@ -# @frak-labs-example/news-interactions - -## 0.1.19 - -### Patch Changes - -- Updated dependencies [[`548faf9`](https://github.com/frak-id/wallet/commit/548faf907fbe376160c57a882174fb2794bf15cb)]: - - @frak-labs/nexus-sdk@0.0.21 - - @frak-labs/shared@0.0.0 - -## 0.1.18 - -### Patch Changes - -- Updated dependencies [[`666a5aa`](https://github.com/frak-id/wallet/commit/666a5aa89cb2d2281a2e88f66cca53a68dcef5d1)]: - - @frak-labs/nexus-sdk@0.0.20 - - @frak-labs/shared@0.0.0 - -## 0.1.17 - -### Patch Changes - -- Updated dependencies [[`76cbf40`](https://github.com/frak-id/wallet/commit/76cbf40a2be2b493be0532f2de9c19d8c198b1d0)]: - - @frak-labs/nexus-sdk@0.0.19 - - @frak-labs/shared@0.0.0 - -## 0.1.16 - -### Patch Changes - -- Updated dependencies [[`ce1ef14`](https://github.com/frak-id/wallet/commit/ce1ef14a920b186e2572c54d685937b47761c221)]: - - @frak-labs/nexus-sdk@0.0.18 - - @frak-labs/shared@0.0.0 - -## 0.1.15 - -### Patch Changes - -- Updated dependencies [[`966662a`](https://github.com/frak-id/wallet/commit/966662a21f778c2560bf73ddd62f614dbc3376bb)]: - - @frak-labs/nexus-sdk@0.0.17 - - @frak-labs/shared@0.0.0 - -## 0.1.14 - -### Patch Changes - -- Updated dependencies [[`62e0d41`](https://github.com/frak-id/wallet/commit/62e0d41cffd532cf037fa39a885f8e31f92270cb), [`6780f93`](https://github.com/frak-id/wallet/commit/6780f939a3827ebf05beab74ae1cde2f4bfad16b)]: - - @frak-labs/nexus-sdk@0.0.16 - - @frak-labs/shared@0.0.0 - -## 0.1.13 - -### Patch Changes - -- Updated dependencies [[`cdacb66`](https://github.com/frak-id/wallet/commit/cdacb6685516e9a1a6e7a3c4d87abd3f888853ef)]: - - @frak-labs/nexus-sdk@0.0.15 - - @frak-labs/shared@0.0.0 - -## 0.1.12 - -### Patch Changes - -- Updated dependencies [[`8e69dfd`](https://github.com/frak-id/wallet/commit/8e69dfd51015bfbbe9f02d2ae5431da1459e7a1f)]: - - @frak-labs/nexus-sdk@0.0.14 - -## 0.1.11 - -### Patch Changes - -- Updated dependencies [[`f8c200a`](https://github.com/frak-id/wallet/commit/f8c200acb1304b9390509ad440a47ba336b578d9)]: - - @frak-labs/nexus-sdk@0.0.13 - -## 0.1.10 - -### Patch Changes - -- Updated dependencies [[`3aca02c`](https://github.com/frak-id/wallet/commit/3aca02c223236c3d176edff6130d8ebb874262d5)]: - - @frak-labs/nexus-sdk@0.0.12 - -## 0.1.9 - -### Patch Changes - -- Updated dependencies [[`3e52138`](https://github.com/frak-id/wallet/commit/3e521385bb1c0e452da21eb746781730c9269250), [`f653237`](https://github.com/frak-id/wallet/commit/f653237a1b2b4d4cba926ebc01dba1d9c5d9b717), [`d5f797e`](https://github.com/frak-id/wallet/commit/d5f797e6c981fef852df523d7ea6a6baebb59af7)]: - - @frak-labs/nexus-sdk@0.0.11 diff --git a/example/news-interactions/LICENSE b/example/news-interactions/LICENSE deleted file mode 100644 index 383ac022d..000000000 --- a/example/news-interactions/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2024 Frak Labs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/example/news-interactions/next-env.d.ts b/example/news-interactions/next-env.d.ts deleted file mode 100644 index 40c3d6809..000000000 --- a/example/news-interactions/next-env.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -/// - -// NOTE: This file should not be edited -// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information. diff --git a/example/news-interactions/next.config.mjs b/example/news-interactions/next.config.mjs deleted file mode 100644 index 0a49e0cf6..000000000 --- a/example/news-interactions/next.config.mjs +++ /dev/null @@ -1,36 +0,0 @@ -import { pick } from "radash"; -import { Config } from "sst/node/config"; - -// Secret env variable from SST we want in the frontend -const wantedFromConfig = [ - "FRAK_WALLET_URL", - "MONGODB_FRAK_POC_URI", - "BACKEND_URL", -]; -const envFromSstConfig = pick(Config, wantedFromConfig); - -/** @type {import('next').NextConfig} */ -const nextConfig = { - env: { - ...envFromSstConfig, - STAGE: Config.STAGE, - }, - compiler: { - removeConsole: Config.STAGE === "prod", - }, - output: "standalone", - images: { - remotePatterns: [ - { - protocol: "https", - hostname: "**", - }, - { - protocol: "http", - hostname: "localhost", - }, - ], - }, -}; - -export default nextConfig; diff --git a/example/news-interactions/package.json b/example/news-interactions/package.json deleted file mode 100644 index 433f1f45d..000000000 --- a/example/news-interactions/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@frak-labs-example/news-interactions", - "version": "0.1.19", - "description": "Demo of a news paper website using the Frak SDK to sniff user interactions", - "private": true, - "type": "module", - "license": "MIT", - "scripts": { - "next-dev-https": "next dev --experimental-https --port 3011", - "dev": "sst bind bun run next-dev-https", - "build": "sst bind next build --experimental-turbo", - "start": "sst bind next start", - "lint": "biome lint .", - "format:check": "biome check .", - "format": "biome check --write .", - "typecheck": "tsc --noEmit", - "deploy": "sst deploy --stage prod" - }, - "dependencies": { - "@frak-labs/nexus-sdk": "workspace:*", - "@frak-labs/shared": "workspace:*", - "@lottiefiles/react-lottie-player": "^3.5.4", - "@tanstack/query-sync-storage-persister": "^5.59.13", - "@tanstack/react-query": "^5.59.15", - "@tanstack/react-query-devtools": "^5.59.15", - "@tanstack/react-query-persist-client": "^5.59.15", - "next": "14.2.15", - "next-view-transitions": "^0.3.2", - "radash": "^12.1.0", - "react": "^18", - "react-dom": "^18", - "react-markdown": "^9.0.1", - "swiper": "^11.1.14", - "viem": "^2.21.29" - }, - "devDependencies": { - "@types/node": "^22", - "@types/react": "^18", - "@types/react-dom": "^18", - "sst": "2.44.0", - "typescript": "^5" - } -} diff --git a/example/news-interactions/public/assets/logo-good-vibes.svg b/example/news-interactions/public/assets/logo-good-vibes.svg deleted file mode 100644 index e5e9aca2d..000000000 --- a/example/news-interactions/public/assets/logo-good-vibes.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/example/news-interactions/public/favicons/favicon.ico b/example/news-interactions/public/favicons/favicon.ico deleted file mode 100755 index c462274ee..000000000 Binary files a/example/news-interactions/public/favicons/favicon.ico and /dev/null differ diff --git a/example/news-interactions/public/favicons/icon-192.png b/example/news-interactions/public/favicons/icon-192.png deleted file mode 100644 index 6c8b259b4..000000000 Binary files a/example/news-interactions/public/favicons/icon-192.png and /dev/null differ diff --git a/example/news-interactions/public/favicons/icon-512.png b/example/news-interactions/public/favicons/icon-512.png deleted file mode 100644 index 4e7cde28a..000000000 Binary files a/example/news-interactions/public/favicons/icon-512.png and /dev/null differ diff --git a/example/news-interactions/public/favicons/icon.svg b/example/news-interactions/public/favicons/icon.svg deleted file mode 100644 index afcf27b35..000000000 --- a/example/news-interactions/public/favicons/icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/example/news-interactions/public/manifest.json b/example/news-interactions/public/manifest.json deleted file mode 100644 index fd7ee119d..000000000 --- a/example/news-interactions/public/manifest.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "Good Vibes by Frak", - "short_name": "Good Vibes - Frak", - "description": "Good Vibes website using Frak Wallet.", - "version": "0.0.2", - "icons": [ - { - "src": "/favicons/icon-192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/favicons/icon-512.png", - "sizes": "512x512", - "type": "image/png", - "purpose": "maskable" - } - ], - "start_url": "/", - "display": "standalone", - "background_color": "#ffffff", - "theme_color": "#ffffff", - "launch_handler": { - "client_mode": ["focus-existing", "navigate-existing", "auto"] - } -} diff --git a/example/news-interactions/src/app/article/page.tsx b/example/news-interactions/src/app/article/page.tsx deleted file mode 100644 index 763727d46..000000000 --- a/example/news-interactions/src/app/article/page.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import { NewsArticlePage } from "@/module/news/component/NewsArticlePage"; -import { Spinner } from "@module/component/Spinner"; -import { Suspense } from "react"; - -export default function NewsArticlePageWrapper() { - return ( - }> - - - ); -} diff --git a/example/news-interactions/src/app/layout.tsx b/example/news-interactions/src/app/layout.tsx deleted file mode 100644 index 0e0533a10..000000000 --- a/example/news-interactions/src/app/layout.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import "@/styles/all.css"; -import { Fonts } from "@/module/common/component/Fonts"; -import { MainLayout } from "@/module/common/component/MainLayout"; -import { RootProvider } from "@/module/common/provider/RootProvider"; -import type { Metadata, Viewport } from "next"; -import { ViewTransitions } from "next-view-transitions"; -import type { ReactNode } from "react"; - -export const metadata: Metadata = { - title: "Good Vibes by Frak", - applicationName: "Good Vibes - Frak", - description: "Good Vibes website using Frak Wallet.", - authors: [ - { name: "Frak labs", url: "https://frak.id/" }, - { name: "Rodolphe Stoclin", url: "https://github.com/srod" }, - { name: "Quentin Nivelais", url: "https://github.com/KONFeature" }, - ], - icons: { - icon: [ - { rel: "icon", url: "/favicons/favicon.ico", sizes: "48x48" }, - { rel: "icon", url: "/favicons/icon.svg", type: "image/svg+xml" }, - ], - apple: [ - { - url: "/favicons/icon-192.png", - type: "image/png", - }, - ], - }, - creator: "Frak labs", - publisher: "Frak labs", - manifest: "/manifest.json", - keywords: ["frak", "wallet", "frak-wallet", "blockchain"], -}; - -export const viewport: Viewport = { - themeColor: "#ffffff", -}; - -export default function RootLayout({ - children, -}: Readonly<{ - children: ReactNode; -}>) { - return ( - - - - - - {children} - - - - - ); -} diff --git a/example/news-interactions/src/app/page.tsx b/example/news-interactions/src/app/page.tsx deleted file mode 100644 index 8d6710b48..000000000 --- a/example/news-interactions/src/app/page.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { NewsList } from "@/module/news/component/NewsList"; - -export default function HomePage() { - return ; -} diff --git a/example/news-interactions/src/app/robots.ts b/example/news-interactions/src/app/robots.ts deleted file mode 100644 index a32c5c8d5..000000000 --- a/example/news-interactions/src/app/robots.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type { MetadataRoute } from "next"; - -export default function robots(): MetadataRoute.Robots { - return { - rules: { - userAgent: "*", - disallow: "/", - }, - }; -} diff --git a/example/news-interactions/src/module/common/component/Fonts/index.tsx b/example/news-interactions/src/module/common/component/Fonts/index.tsx deleted file mode 100644 index c00b75d50..000000000 --- a/example/news-interactions/src/module/common/component/Fonts/index.tsx +++ /dev/null @@ -1,43 +0,0 @@ -"use client"; - -import { Merriweather, Roboto } from "next/font/google"; -import { useServerInsertedHTML } from "next/navigation"; - -const fontMerriWeather = Merriweather({ - subsets: ["latin"], - variable: "--font-family-merriWeather", - fallback: ["--font-family-sans"], - weight: ["700"], - display: "swap", -}); - -const fontRoboto = Roboto({ - subsets: ["latin"], - variable: "--font-family", - fallback: ["--font-family-sans"], - weight: ["400", "500", "700"], - display: "swap", -}); - -export function Fonts() { - useServerInsertedHTML(() => { - return ( -