mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
added messageposter button in page.tsx - to auto loginto extension
This commit is contained in:
parent
6ae5c56062
commit
0edcea10d5
16 changed files with 129 additions and 25 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
.next/
|
||||
.turbo
|
||||
*.sqlite
|
||||
*.lockb
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"pages": {
|
||||
"/page": [
|
||||
"/not-found": [
|
||||
"static/chunks/webpack.js",
|
||||
"static/chunks/main-app.js",
|
||||
"static/chunks/app/page.js"
|
||||
"static/chunks/app/not-found.js"
|
||||
],
|
||||
"/layout": [
|
||||
"static/chunks/webpack.js",
|
||||
|
|
@ -11,10 +11,10 @@
|
|||
"static/css/app/layout.css",
|
||||
"static/chunks/app/layout.js"
|
||||
],
|
||||
"/not-found": [
|
||||
"/page": [
|
||||
"static/chunks/webpack.js",
|
||||
"static/chunks/main-app.js",
|
||||
"static/chunks/app/not-found.js"
|
||||
"static/chunks/app/page.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,3 +1,4 @@
|
|||
{
|
||||
"/page": "app/page.js"
|
||||
"/not-found": "app/not-found.js",
|
||||
"/page": "static/webpack/app/page.2a2c9169e80b5082.hot-update.js"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -2,6 +2,27 @@
|
|||
"sortedMiddleware": [],
|
||||
"middleware": {},
|
||||
"functions": {
|
||||
"/not-found": {
|
||||
"files": [
|
||||
"server/server-reference-manifest.js",
|
||||
"server/app/not-found_client-reference-manifest.js",
|
||||
"server/middleware-build-manifest.js",
|
||||
"server/middleware-react-loadable-manifest.js",
|
||||
"server/next-font-manifest.js",
|
||||
"server/edge-runtime-webpack.js",
|
||||
"server/app/not-found.js"
|
||||
],
|
||||
"name": "app/not-found",
|
||||
"page": "/not-found",
|
||||
"matchers": [
|
||||
{
|
||||
"regexp": "^/not\\-found$",
|
||||
"originalSource": "/not-found"
|
||||
}
|
||||
],
|
||||
"wasm": [],
|
||||
"assets": []
|
||||
},
|
||||
"/page": {
|
||||
"files": [
|
||||
"server/server-reference-manifest.js",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"ZWNgdVMZpdUZxyAbPoNt3XJTA6BPjXGSKTllm6N6ukQ=\"\n}"
|
||||
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"FHan239h+0dwLwucp8N9He43tiRE9RtvqnkWgcOzTjI=\"\n}"
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"node": {},
|
||||
"edge": {},
|
||||
"encryptionKey": "ZWNgdVMZpdUZxyAbPoNt3XJTA6BPjXGSKTllm6N6ukQ="
|
||||
"encryptionKey": "FHan239h+0dwLwucp8N9He43tiRE9RtvqnkWgcOzTjI="
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -10,7 +10,7 @@ function MessagePoster({ jwt }: { jwt: string }) {
|
|||
|
||||
return (
|
||||
<button onClick={() => window.postMessage({ jwt }, '*')}>
|
||||
Validate Extension
|
||||
Send auth token to extension
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { CardContent, Card } from '@/components/ui/card';
|
||||
import { db } from '@/server/db';
|
||||
import {
|
||||
|
|
@ -11,9 +9,9 @@ import {
|
|||
import { eq, inArray } from 'drizzle-orm';
|
||||
import { cookies, headers } from 'next/headers';
|
||||
import { redirect } from 'next/navigation';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import Image from 'next/image';
|
||||
import QueryAI from '@/components/QueryAI';
|
||||
import MessagePoster from './MessagePoster';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
|
|
@ -91,6 +89,8 @@ export default async function Home() {
|
|||
|
||||
<QueryAI />
|
||||
|
||||
<MessagePoster jwt={token} />
|
||||
|
||||
{/* TODO: LABEL THE WEBSITES USING A CLASSIFICATION MODEL */}
|
||||
{/* <nav className="flex space-x-2 my-4">
|
||||
<Badge variant="secondary">Technology (2)</Badge>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue