Domain degisikligi: fristy.net -> fristy.dev
CI / Code Health (pull_request) Successful in 22s
CI / Lint, Test & Build (pull_request) Successful in 46s
CI / Code Health (push) Successful in 25s
CI / Lint, Test & Build (push) Successful in 54s
Deploy / Build & Push Image (push) Successful in 56s
Deploy / Trigger Deploy (push) Successful in 1s
CI / Code Health (pull_request) Successful in 22s
CI / Lint, Test & Build (pull_request) Successful in 46s
CI / Code Health (push) Successful in 25s
CI / Lint, Test & Build (push) Successful in 54s
Deploy / Build & Push Image (push) Successful in 56s
Deploy / Trigger Deploy (push) Successful in 1s
This commit was merged in pull request #4.
This commit is contained in:
17 files changed
+40
-37
No files matched your search
@@ -29,7 +29,7 @@ describe("jsonErrorWithCors", () => {
|
||||
const response = jsonErrorWithCors({ error: "Nope" }, 404);
|
||||
expect(response.status).toBe(404);
|
||||
expect(response.headers.get("Cache-Control")).toContain("s-maxage=60");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
|
||||
await expect(response.json()).resolves.toEqual({ error: "Nope" });
|
||||
});
|
||||
});
|
||||
@@ -37,7 +37,7 @@ describe("jsonWithCors", () => {
|
||||
it("sets cache and CORS headers", async () => {
|
||||
const response = jsonWithCors({ ok: true }, 3600);
|
||||
expect(response.headers.get("Cache-Control")).toContain("s-maxage=3600");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
|
||||
await expect(response.json()).resolves.toEqual({ ok: true });
|
||||
});
|
||||
|
||||
@@ -48,6 +48,6 @@ describe("jsonWithCors", () => {
|
||||
|
||||
it("falls back to production for untrusted origins", async () => {
|
||||
const response = jsonWithCors({ ok: true }, 3600, "https://evil.example");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
|
||||
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
|
||||
});
|
||||
});
|
||||
@@ -57,7 +57,7 @@ export async function getDiscordAppInfo(applicationId: string): Promise<DiscordA
|
||||
let response: Response;
|
||||
try {
|
||||
response = await fetch(`https://discord.com/api/v10/applications/${applicationId}/rpc`, {
|
||||
headers: { "User-Agent": "fristy.net (personal site)" },
|
||||
headers: { "User-Agent": "fristy.dev (personal site)" },
|
||||
next: { revalidate: 86_400 },
|
||||
});
|
||||
} catch (error) {
|
||||
|
||||
+4
-1
@@ -5,6 +5,8 @@ const GITEA_USER = "fristy";
|
||||
|
||||
const EXCLUDED_REPOS = new Set([".profile"]);
|
||||
|
||||
const MAX_REPOS = 8;
|
||||
|
||||
export interface GiteaRepo {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -56,7 +58,8 @@ export async function getRepos(): Promise<GiteaRepo[]> {
|
||||
forks: repo.forks_count,
|
||||
updatedAt: repo.updated_at,
|
||||
}))
|
||||
.sort((a, b) => +new Date(b.updatedAt) - +new Date(a.updatedAt));
|
||||
.sort((a, b) => +new Date(b.updatedAt) - +new Date(a.updatedAt))
|
||||
.slice(0, MAX_REPOS);
|
||||
} catch {
|
||||
warnDev("cannot fetch gitea repos");
|
||||
return [];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "fristy.net — fristy love you",
|
||||
"title": "fristy.dev — fristy love you",
|
||||
"description": "Fristys persönliche Ecke: Projekte, Live-Discord-Status und Kontakt."
|
||||
},
|
||||
"nav": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "fristy.net — fristy love you",
|
||||
"title": "fristy.dev — fristy love you",
|
||||
"description": "Fristy's personal corner: projects, live Discord status and contact."
|
||||
},
|
||||
"nav": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "fristy.net - fristy love you",
|
||||
"title": "fristy.dev - fristy love you",
|
||||
"description": "Fristy'nin kişisel köşesi: projeler, canlı Discord durumu ve iletişim."
|
||||
},
|
||||
"nav": {
|
||||
@@ -71,7 +71,7 @@
|
||||
},
|
||||
"projects": {
|
||||
"title": "Projeler",
|
||||
"subtitle": "Açık kaynak projelerim git.fristy.net üzerinde. Liste otomatik güncelleniyor.",
|
||||
"subtitle": "Açık kaynak projelerim git.fristy.net adresinde barınıyor. Liste her saat otomatik güncelleniyor.",
|
||||
"updated": "Güncellendi",
|
||||
"stars": "Yıldız",
|
||||
"forks": "Çatal",
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
export const SITE_URL = "https://fristy.net";
|
||||
export const CONTACT_EMAIL = "iletisim@fristy.net";
|
||||
export const SITE_URL = "https://fristy.dev";
|
||||
export const CONTACT_EMAIL = "iletisim@fristy.dev";
|
||||
export const GITEA_PROFILE_URL = "https://git.fristy.net/fristy";
|
||||
export const SOURCE_URL = "https://git.fristy.net/fristy/fristynet";
|
||||
export const SOURCE_URL = "https://git.fristy.net/fristy/fristydev";
|
||||
export const GITHUB_URL = "https://github.com/fristyxd";
|
||||
export const DISCORD_SERVER_URL = "https://discord.gg/fristy";
|
||||
export const SPOTIFY_URL = "https://open.spotify.com/user/gayiw5j9i0rtvyra6gfzhpfwf";
|
||||
|
||||
Reference in new issue
Block a user