Unverified Commit 25795358 authored by Hong Minhee's avatar Hong Minhee
Browse files

Update the Next.js example

[ci skip]
parent 68fa8fb9
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -11,24 +11,24 @@ export default function Page() {
      </p>
      <p>
        You can follow this demo app via the below handle:{" "}
        <code className="pre px-2 py-1 bg-gray-100 rounded-md">
        <code className="pre px-2 py-1 bg-gray-100 rounded-md select-all">
          @demo@{headers().get("host")}
        </code>
      </p>
      {relationStore.size === 0 ? (
        <p>
          No followers yet. Add follower by using{" "}
          No followers yet. Try to add a follower using{" "}
          <a
            href="https://activitypub.academy/"
            target="_blank"
            className="text-blue-600"
          >
            ActivityPub
          </a>
            ActivityPub.Academy
          </a>.
        </p>
      ) : (
        <p>
          This account has the below {relationStore.size} followers:
        <>
          <p>This account has the below {relationStore.size} followers:</p>
          <ul className="grid gap-1">
            {Array.from(relationStore.values()).map((address) => (
              <li
@@ -39,7 +39,7 @@ export default function Page() {
              </li>
            ))}
          </ul>
        </p>
        </>
      )}
    </div>
  );
+15 −21
Original line number Diff line number Diff line
@@ -8,8 +8,8 @@
      "name": "next",
      "version": "0.1.0",
      "dependencies": {
        "@fedify/fedify": "^0.14.2",
        "@logtape/logtape": "^0.5.0",
        "@fedify/fedify": "^1.0.2",
        "@logtape/logtape": "^0.6.2",
        "next": "15.0.0-canary.136",
        "react": "19.0.0-rc-7771d3a7-20240827",
        "react-dom": "19.0.0-rc-7771d3a7-20240827",
@@ -179,9 +179,9 @@
      }
    },
    "node_modules/@fedify/fedify": {
      "version": "0.14.2",
      "resolved": "https://registry.npmjs.org/@fedify/fedify/-/fedify-0.14.2.tgz",
      "integrity": "sha512-zb9U4H9A3AK0zRJZNBl2ckumKBORFCqdw4zXWgJQlhxTK0g+mncFiz41OyIMV0KIug+GsslcjMpnLUsMTyT5FQ==",
      "version": "1.0.2",
      "resolved": "https://registry.npmjs.org/@fedify/fedify/-/fedify-1.0.2.tgz",
      "integrity": "sha512-OWVfahJRstzCOGSEDJ5CEppVHZyR9IfpFStj1WnedLE6rFoYZ94fZu7dQv4x0M1a1K3AfIiwvOAgcXldy21sWg==",
      "funding": [
        "https://github.com/sponsors/dahlia"
      ],
@@ -191,25 +191,19 @@
        "@deno/shim-deno": "~0.18.0",
        "@hugoalh/http-header-link": "^1.0.2",
        "@js-temporal/polyfill": "^0.4.4",
        "@logtape/logtape": "^0.4.0",
        "@phensley/language-tag": "^1.8.1",
        "@logtape/logtape": "^0.6.2",
        "@phensley/language-tag": "^1.9.0",
        "asn1js": "^3.0.5",
        "json-canon": "^1.0.1",
        "jsonld": "^8.3.2",
        "multibase": "^4.0.6",
        "multicodec": "^3.2.1",
        "pkijs": "^3.1.0",
        "pkijs": "^3.2.4",
        "uri-template-router": "^0.0.16",
        "url-template": "^3.1.1",
        "urlpattern-polyfill": "~10.0.0"
      }
    },
    "node_modules/@fedify/fedify/node_modules/@logtape/logtape": {
      "version": "0.4.3",
      "resolved": "https://registry.npmjs.org/@logtape/logtape/-/logtape-0.4.3.tgz",
      "integrity": "sha512-sUZAJpoYGHfRSVhExiGIzPFdLBuXcGWhkOOLieieaU2JDkTT7zx+f3i6i2YeyqA0bpPHcOGl5xBT2YD+lasWig==",
      "license": "MIT"
    },
    "node_modules/@hugoalh/http-header-link": {
      "version": "1.0.2",
      "resolved": "https://registry.npmjs.org/@hugoalh/http-header-link/-/http-header-link-1.0.2.tgz",
@@ -744,9 +738,9 @@
      }
    },
    "node_modules/@logtape/logtape": {
      "version": "0.5.0",
      "resolved": "https://registry.npmjs.org/@logtape/logtape/-/logtape-0.5.0.tgz",
      "integrity": "sha512-fJpPP52BtPCNq45aZlOZvmzm0XlIbZjop6RhZFRiIPdx3ktMThxmq884x0Sg3bT3UT62bjg7NlvMejlSMWqdBQ==",
      "version": "0.6.2",
      "resolved": "https://registry.npmjs.org/@logtape/logtape/-/logtape-0.6.2.tgz",
      "integrity": "sha512-oxlXxhRlypREAWjaVNAqlOyo5whMmdtwgtsPfhxhzlc364DWJjGjXGCPJ1owwf1nlX/C+Wcp4vumV+mLksReuA==",
      "funding": [
        "https://github.com/sponsors/dahlia"
      ],
@@ -979,12 +973,12 @@
      }
    },
    "node_modules/@phensley/language-tag": {
      "version": "1.8.2",
      "resolved": "https://registry.npmjs.org/@phensley/language-tag/-/language-tag-1.8.2.tgz",
      "integrity": "sha512-dQwEPtSZq3DjZ6aejRWL21DhqJ/hAdoulVdLXrSk7LZ9yzGI1nmWBmW89xox51zJmtDqKXmlfwOzI1hheIwRUw==",
      "version": "1.9.0",
      "resolved": "https://registry.npmjs.org/@phensley/language-tag/-/language-tag-1.9.0.tgz",
      "integrity": "sha512-nj2uFsnp2SSD/DEGvLqcrpTXerIe9yShGndnwY7p3Z6Ep4m6+GkrgZCNJUc8rKcXWgQmRGC2TUzwG/LlBVtuCA==",
      "license": "Apache-2.0",
      "dependencies": {
        "tslib": "^2.6.2"
        "tslib": "^2.7.0"
      }
    },
    "node_modules/@pkgjs/parseargs": {
+4 −3
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@
    "lint": "next lint"
  },
  "dependencies": {
    "@fedify/fedify": "^0.14.2",
    "@logtape/logtape": "^0.5.0",
    "@fedify/fedify": "^1.0.2",
    "@logtape/logtape": "^0.6.2",
    "next": "15.0.0-canary.136",
    "react": "19.0.0-rc-7771d3a7-20240827",
    "react-dom": "19.0.0-rc-7771d3a7-20240827",
@@ -25,5 +25,6 @@
    "postcss": "^8",
    "tailwindcss": "^3.4.1",
    "typescript": "^5"
  }
  },
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}