ekurt 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +17 -0
- package/README.md +83 -2
- package/data/about.md +9 -0
- package/data/about.terminal.md +9 -0
- package/data/bookmarks.json +308 -0
- package/data/cv.json +64 -0
- package/data/games.json +30 -0
- package/data/posts.json +497 -0
- package/data/profile.json +27 -0
- package/data/projects.json +134 -0
- package/dist/cli.js +71 -0
- package/dist/contact.js +41 -0
- package/dist/content.js +55 -0
- package/dist/export.js +59 -0
- package/dist/games/board.js +62 -0
- package/dist/games/bugsweeper.js +177 -0
- package/dist/games/memory.js +155 -0
- package/dist/shell/commands.js +506 -0
- package/dist/shell/complete.js +47 -0
- package/dist/shell/fs.js +91 -0
- package/dist/shell/shell.js +199 -0
- package/dist/ui/boot.js +110 -0
- package/dist/ui/highlight.js +134 -0
- package/dist/ui/markdown.js +210 -0
- package/dist/ui/pages.js +156 -0
- package/dist/ui/screen.js +82 -0
- package/dist/ui/style.js +60 -0
- package/dist/ui/text.js +139 -0
- package/package.json +43 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Emre Kurt",
|
|
3
|
+
"role": "Full-Stack Developer",
|
|
4
|
+
"focus": "Next.js, React & TypeScript",
|
|
5
|
+
"location": "Antalya, Turkey",
|
|
6
|
+
"tagline": "A full-stack developer in Antalya, building fast and accessible web products.",
|
|
7
|
+
"url": "https://ekurt.dev",
|
|
8
|
+
"email": "hey@ekurt.dev",
|
|
9
|
+
"contactApi": "https://ekurt.dev/api/contact",
|
|
10
|
+
"socials": [
|
|
11
|
+
{ "label": "GitHub", "handle": "ekurt", "href": "https://github.com/ekurt" },
|
|
12
|
+
{ "label": "LinkedIn", "handle": "ekurtdev", "href": "https://www.linkedin.com/in/ekurtdev/" }
|
|
13
|
+
],
|
|
14
|
+
"coffee": { "label": "Buy Me a Coffee", "handle": "ekurt", "href": "https://buymeacoffee.com/ekurt" },
|
|
15
|
+
"stack": "Next.js 16 · React 19 · Tailwind 4",
|
|
16
|
+
"apps": [
|
|
17
|
+
{ "id": "about", "title": "About", "route": "/about", "color": "#ff7a3d" },
|
|
18
|
+
{ "id": "projects", "title": "Projects", "route": "/projects", "color": "#2f6bff" },
|
|
19
|
+
{ "id": "blog", "title": "Blog", "route": "/blog", "color": "#e5484d" },
|
|
20
|
+
{ "id": "bookmarks", "title": "Bookmarks", "route": "/bookmarks", "color": "#d18a00" },
|
|
21
|
+
{ "id": "mail", "title": "Mail", "route": "/contact", "color": "#1a8cff" },
|
|
22
|
+
{ "id": "terminal", "title": "Terminal", "route": "/terminal", "color": "#4a4f5c" },
|
|
23
|
+
{ "id": "arcade", "title": "Arcade", "route": "/arcade", "color": "#c2309d" },
|
|
24
|
+
{ "id": "settings", "title": "Settings", "route": "/settings", "color": "#6e7684" },
|
|
25
|
+
{ "id": "cv", "title": "CV.pdf", "route": "/cv", "color": "#14a37f" }
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"slug": "breathe",
|
|
4
|
+
"title": "Breathe",
|
|
5
|
+
"description": "A quiet breathing-exercise app. Open it, pick an exercise, breathe — in two taps, even offline.",
|
|
6
|
+
"date": "2026-11-25",
|
|
7
|
+
"url": "https://breathe.ekurt.dev",
|
|
8
|
+
"repository": null,
|
|
9
|
+
"category": "apps",
|
|
10
|
+
"badge": null,
|
|
11
|
+
"support": true,
|
|
12
|
+
"body": "### Pause for a moment\n\nBreathe is built around a single rule: nothing may stand between opening the app and starting a session. Every feature has to pass the question \"does this make it harder to begin?\"\n\n\n\n### Exercises\n\n- **Box breathing** (4-4-4-4) to steady focus.\n- **4-7-8** for winding down.\n- **Coherent breathing** at about 5.5 breaths a minute.\n- **Physiological sigh** for a quick reset.\n\n### Details\n\n- A soft, low-contrast interface with a breathing orb that follows each phase.\n- The current phase is announced to screen readers, and reduced motion is respected.\n- Gentle tones generated with the Web Audio API — no audio files.\n- No account, no server, no analytics; everything stays on the device.\n- Installable PWA that works fully offline. Turkish and English.\n\n### Built with\n\nReact 19, TypeScript, Vite, wouter, CSS Modules, vite-plugin-pwa (Workbox) and Vitest. A rAF-driven timing engine keeps every phase accurate.\n"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"slug": "ninefold",
|
|
16
|
+
"title": "Ninefold",
|
|
17
|
+
"description": "A calm, guided way to build and live the Japanese 9×9 goal chart — one heart, eight pillars, sixty-four steps.",
|
|
18
|
+
"date": "2026-11-24",
|
|
19
|
+
"url": "https://ninefold.ekurt.dev",
|
|
20
|
+
"repository": null,
|
|
21
|
+
"category": "products",
|
|
22
|
+
"badge": "Free · No account",
|
|
23
|
+
"support": true,
|
|
24
|
+
"body": "### Who it's for\n\nAnyone with one big goal and no clear way to get there. Ninefold is built around the Mandal-Art chart (the Harada method): one goal in the centre of a 9×9 grid, eight supporting goals around it, and eight concrete steps under each. On paper it is a blank, intimidating grid, and few tools are made for the method itself. Ninefold turns it into a short story told in chapters, so you learn the method while you use it.\n\n\n\n### How it works\n\n- **Arrival → Heart:** name the one goal that matters.\n- **Pillars:** eight supporting goals around it.\n- **Unfolding:** the chart opens up to the full 9×9.\n- **Paths:** sixty-four steps, filled block by block.\n- **Living:** a gentle daily check-in.\n\n### The philosophy\n\nGoals are hard enough without an app making you feel guilty. Ninefold is calm on purpose: no red warnings, no aggressive counters, one focus at a time. A missed day is a rest day, not a failure.\n\n### What you get\n\n- A guided flow that teaches the method as you go.\n- Slow, spring-based animations that fall back to simple fades with reduced motion.\n- Generative ambient music — off until you ask for it.\n- On phones, the chart becomes a 3×3 block view you zoom into.\n- No account: everything stays on your device, with backup export and import.\n- Install it to your home screen; it works offline.\n\n### Built with\n\nReact 19, TypeScript, Vite, Tailwind CSS v4, Motion, Zustand, vite-plugin-pwa, Vitest and Playwright.\n"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"slug": "topic-spinner",
|
|
28
|
+
"title": "Topic Spinner",
|
|
29
|
+
"description": "Spin the reel and get a random English conversation topic — 14 categories, 350 topics, one tap to start talking.",
|
|
30
|
+
"date": "2026-11-21",
|
|
31
|
+
"url": "https://topics.ekurt.dev",
|
|
32
|
+
"repository": null,
|
|
33
|
+
"category": "learning",
|
|
34
|
+
"badge": null,
|
|
35
|
+
"support": true,
|
|
36
|
+
"body": "### Never run out of things to say\n\nBuilt for English speaking practice: pick a category (or Random), press Spin, and a slot-machine reel lands on a question to talk about.\n\n\n\n### Details\n\n- 14 categories of 25 topics each, with no duplicates across categories.\n- One screen, one focus: the layout never scrolls or shifts, from phones to large desktops.\n- Respects reduced motion — the result appears instantly instead of spinning.\n- Installable PWA that works offline.\n\n### Built with\n\nPlain HTML, CSS and JavaScript. No build step, no dependencies.\n"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"slug": "ottoman-history-guide",
|
|
40
|
+
"title": "Ottoman History Guide",
|
|
41
|
+
"description": "A non-profit, sourced guide to the history of the Ottoman state, told through a chronology, periods, sultans and topics.",
|
|
42
|
+
"date": "2026-11-18",
|
|
43
|
+
"url": "https://ottoman.ekurt.dev",
|
|
44
|
+
"repository": null,
|
|
45
|
+
"category": "learning",
|
|
46
|
+
"badge": null,
|
|
47
|
+
"support": true,
|
|
48
|
+
"body": "### Accuracy first\n\nThe guide follows one order of priorities: accuracy, then sources and licensing, then coverage, then design. Every record must cite its sources, concrete claims are checked against at least two independent references, and where historians disagree both views are shown instead of an invented compromise. Legend is kept apart from fact.\n\n### What's inside\n\n- 36 sultans, a timeline of more than 250 entries and over 900 sourced records.\n- Four ways in: chronology, periods, sultans and topics.\n- \"In the coming days in history\" on the home page.\n- Images that are public domain or openly licensed, each with its credit.\n- Full-text search that also works offline, and an installable PWA.\n- Turkish and English.\n\n### Built with\n\nAstro (static output), TypeScript, Content Collections with Zod schemas, Pagefind for search and Workbox for offline reading.\n"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"slug": "sima",
|
|
52
|
+
"title": "Sima",
|
|
53
|
+
"description": "Create your own avatar — pick every detail from skin tone to earrings, download it as PNG, JPEG or SVG and share it with a link.",
|
|
54
|
+
"date": "2026-11-07",
|
|
55
|
+
"url": "https://sima.ekurt.dev",
|
|
56
|
+
"repository": null,
|
|
57
|
+
"category": "apps",
|
|
58
|
+
"badge": null,
|
|
59
|
+
"support": true,
|
|
60
|
+
"body": "### Drawn from scratch\n\nSima builds an avatar layer by layer from SVG parts drawn specifically for the project — no ready-made avatar libraries. Every hairstyle, face, accessory and outfit is hand-written SVG in a modern flat style, framed head and shoulders.\n\n\n\n### Features\n\n- Start from a preset or a surprise, then change every part.\n- Undo and redo for every change.\n- **No database:** the whole avatar is packed into a short code in the URL, so a link brings back the same avatar.\n- Square exports from 256 to 2048 px as PNG, JPEG, WebP or SVG, with a square or round background.\n- Share by link or QR code.\n- Light and dark themes; Turkish and English.\n\n### Built with\n\nNext.js, React, TypeScript, Tailwind CSS v4, Zustand with zundo (undo/redo), Motion, Biome and Vitest.\n"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"slug": "kelimelik",
|
|
64
|
+
"title": "Kelimelik",
|
|
65
|
+
"description": "A Turkish word puzzle with a letter wheel — 1,500 levels, playable without internet, light enough for low-end phones.",
|
|
66
|
+
"date": "2026-11-02",
|
|
67
|
+
"url": "https://words.ekurt.dev",
|
|
68
|
+
"repository": null,
|
|
69
|
+
"category": "games",
|
|
70
|
+
"badge": null,
|
|
71
|
+
"support": true,
|
|
72
|
+
"body": "### Made for one player first\n\nKelimelik started as a game for my father, whose phone stutters in app-store word games. So performance comes before everything: no background images, no particles, no blur — flat colours and short transitions only. It has to stay smooth on a low-end Android phone with the CPU slowed down six times.\n\n### How it plays\n\nJoin letters on the wheel without lifting your finger to form a word; correct words drop into the crossword grid above. Extra valid words count as bonus words.\n\n### Details\n\n- 1,500 levels with a gradual difficulty curve, generated and validated from Turkish word lists.\n- Large letters, high contrast, touch targets of at least 48 px and a large-text option.\n- Works offline after the first visit (PWA).\n- No framework: the whole game fits in about 25 KB of gzipped JavaScript.\n\n### Built with\n\nTypeScript with plain DOM, Vite, vite-plugin-pwa and Vitest, plus Node scripts that build the word lists and generate the levels.\n"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"slug": "dark",
|
|
76
|
+
"title": "Dark — Winden Archive",
|
|
77
|
+
"description": "A fan site for the series Dark — every character in three ages, their cycles and family ties, in the show's own atmosphere.",
|
|
78
|
+
"date": "2026-10-26",
|
|
79
|
+
"url": "https://dark.ekurt.dev/?lang=en",
|
|
80
|
+
"repository": null,
|
|
81
|
+
"category": "fan-sites",
|
|
82
|
+
"badge": null,
|
|
83
|
+
"support": false,
|
|
84
|
+
"body": "### The beginning is the end\n\nA single-page archive of the characters of *Dark*. Time travel is the main axis: a global switch moves the whole page between **Past · Present · Future**, a wormhole transition plays, the palette changes and every card turns into that character's version in that era. The 33-year cycle — 1888, 1921, 1953, 1986, 2019, 2052 — stays visible throughout.\n\n### What's inside\n\n- Character cards in three ages, each opening into an infographic with dates and relations.\n- A timeline, the family tree and the cycles that connect them.\n- Character portraits generated as SVG from a description of each look.\n- Rain and dust particles, glitches and a soundscape made with Web Audio.\n- Turkish and English.\n\n### Built with\n\nPlain HTML, CSS and JavaScript modules — no framework, no build step and no external requests (even the fonts are self-hosted).\n"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"slug": "world-clocks",
|
|
88
|
+
"title": "World Clocks & Atlas",
|
|
89
|
+
"description": "Time zones and local times on a full-screen world map. Tap any of 238 countries and territories for its flag, population, languages, currency and culture.",
|
|
90
|
+
"date": "2026-10-25",
|
|
91
|
+
"url": "https://maps.ekurt.dev",
|
|
92
|
+
"repository": null,
|
|
93
|
+
"category": "apps",
|
|
94
|
+
"badge": null,
|
|
95
|
+
"support": true,
|
|
96
|
+
"body": "### A clock the size of the world\n\nThe whole screen is a 2D map. Countries are coloured by their current UTC offset, the day–night line moves with the sun, and pinned cities tick along the top. Clicking a country zooms in and slides open a panel instead of leaving the map.\n\n\n\n### What's inside\n\n- Local time and every time zone of a country, with daylight saving handled by the browser's own `Intl` data.\n- Flag, native and official names, population, area, languages, currency and religions.\n- Culture, cuisine and highlights — written by hand for every country, with no country-info API.\n- Map layers: time zone, continent, population density and time of day.\n- A day–night terminator computed from the sun's position.\n- Turkish and English, installable as a PWA.\n\n### Built with\n\nReact, TypeScript, Vite, d3-geo, d3-zoom, TopoJSON with world-atlas, and flag-icons.\n"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"slug": "ruta",
|
|
100
|
+
"title": "Ruta",
|
|
101
|
+
"description": "A Spanish course written for Turkish speakers — lesson by lesson, level by level, with someone to ask when you get stuck.",
|
|
102
|
+
"date": "2026-09-02",
|
|
103
|
+
"url": "https://ruta.tr",
|
|
104
|
+
"repository": null,
|
|
105
|
+
"category": "products",
|
|
106
|
+
"badge": "Free demo · Paid course",
|
|
107
|
+
"support": false,
|
|
108
|
+
"body": "### Who it's for\n\nTurkish speakers who want to learn Spanish properly, not just collect phrases. Every explanation is written in Turkish, and each level is a real course with lessons, exercises and exams.\n\n### How it works\n\nStart with the free demo and see how the lessons feel. When you're ready, buy the level you need — A1 to B2 are separate courses, so you only pay for what you'll use. Pricing and enrolment are on [ruta.tr](https://ruta.tr).\n\n### What you get\n\n- 96 lessons and 1,785 words across levels A1–B2.\n- Exercises after every lesson, and a place to ask a question when you get stuck.\n- Spaced-repetition reviews, unit drills and a verb trainer.\n- Exams that build on everything learned so far.\n- Reading stories and a grammar reference.\n- Every answer is saved, so you (and your study buddy) can look back.\n\n### Built with\n\nNext.js, React, TypeScript, Tailwind CSS with shadcn/ui, Postgres (Neon) with Drizzle ORM, and Vitest.\n"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"slug": "perde",
|
|
112
|
+
"title": "Perde",
|
|
113
|
+
"description": "A card game of secret goals and bluffing for 3–4 players. Plays in the browser, no account — invite friends and start.",
|
|
114
|
+
"date": "2026-04-30",
|
|
115
|
+
"url": "https://perde.online",
|
|
116
|
+
"repository": null,
|
|
117
|
+
"category": "products",
|
|
118
|
+
"badge": "Free · No ads",
|
|
119
|
+
"support": true,
|
|
120
|
+
"body": "### Game night, no setup\n\nPerde is for a group of friends who want to play something together right now — around one table or on a call. Open the site, share a room code, and you're playing. No downloads, no accounts, no ads.\n\n### Secret goals, open table\n\nEvery player gets a hidden goal card, and nobody knows anyone else's. On your turn you play, draw or sabotage; when you believe your goal is complete you declare **Perde**. The declaration has to survive a full round before you can reveal it — and bluffing is allowed. First to seven points wins.\n\n\n\n### What you get\n\n- Real-time multiplayer for 3–4 players, plus spectators.\n- Join with a room code or an invite link — no sign-up.\n- Dropped connection? You're back in your seat automatically.\n- A \"learn by playing\" tutorial and a rules guide.\n- A table that works just as well on a phone.\n\n### Free, and staying that way\n\nPerde is free to play and has no ads — like every project of mine.\n\n### Built with\n\nReact, Vite, Tailwind CSS, Zustand and Framer Motion on the client; Node.js, Express and Socket.IO on the server, where the game rules run.\n"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"slug": "hydro",
|
|
124
|
+
"title": "Hydro",
|
|
125
|
+
"description": "A minimal, mobile-first water tracker. Tap an amount, watch the gauge fill up, reach your daily goal.",
|
|
126
|
+
"date": "2026-04-21",
|
|
127
|
+
"url": "https://hydro.ekurt.dev",
|
|
128
|
+
"repository": null,
|
|
129
|
+
"category": "apps",
|
|
130
|
+
"badge": null,
|
|
131
|
+
"support": true,
|
|
132
|
+
"body": "### Drink, tap, done\n\nHydro is a small app for one daily habit. It opens straight to today's progress, and logging a glass takes a single tap. Added to the home screen, it runs full screen like a native app.\n\n### Features\n\n- Quick amounts from 100 to 500 ml, or a custom amount.\n- A daily goal (2,500 ml by default) you can change in settings.\n- An animated fill gauge and a progress bar with milestones.\n- Today's drinking history, with undo for the last entry.\n- Data kept per day in localStorage — no account needed.\n- Dark, mobile-first design.\n\n### Built with\n\nNext.js 16, React 19, TypeScript, Tailwind CSS v4, Framer Motion, date-fns and Lucide icons.\n"
|
|
133
|
+
}
|
|
134
|
+
]
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* npx ekurt boot, then the interactive shell
|
|
4
|
+
* npx ekurt <command…> run one command and exit, e.g. `npx ekurt cat about-me.md`
|
|
5
|
+
* … | npx ekurt run the piped lines as commands
|
|
6
|
+
* npx ekurt --export md write the CV to ./emre-kurt-cv.md (or json)
|
|
7
|
+
*/
|
|
8
|
+
import { readFileSync } from "node:fs";
|
|
9
|
+
import { profile, version } from "./content.js";
|
|
10
|
+
import { exportCv } from "./export.js";
|
|
11
|
+
import { interactive, runOnce, runScript } from "./shell/shell.js";
|
|
12
|
+
import { accent, bold, error, muted, ok, url } from "./ui/style.js";
|
|
13
|
+
function usage() {
|
|
14
|
+
const p = profile();
|
|
15
|
+
const row = (cmd, note) => ` ${accent(cmd.padEnd(28))}${muted(note)}`;
|
|
16
|
+
return [
|
|
17
|
+
`${bold("e")}${ok(bold("_"))} ${bold("ekurt")} ${muted(`v${version()}`)} — ${p.name}'s site, ${url(p.url)}, in your terminal`,
|
|
18
|
+
"",
|
|
19
|
+
bold("Usage"),
|
|
20
|
+
row("npx ekurt", "start ekurtsh, the ekurtOS shell"),
|
|
21
|
+
row("npx ekurt <command>", "run one command and exit"),
|
|
22
|
+
row("npx ekurt --export md|json", "save the CV in this folder"),
|
|
23
|
+
row("npx ekurt --no-boot", "skip the start-up screen"),
|
|
24
|
+
row("npx ekurt --help, --version", ""),
|
|
25
|
+
"",
|
|
26
|
+
bold("Try"),
|
|
27
|
+
row("npx ekurt cv", "the résumé"),
|
|
28
|
+
row("npx ekurt ls -l projects", "what I've built"),
|
|
29
|
+
row("npx ekurt cat about-me.md", "who I am"),
|
|
30
|
+
row("npx ekurt search react", "posts, projects and links"),
|
|
31
|
+
row("npx ekurt help", "every command"),
|
|
32
|
+
].join("\n");
|
|
33
|
+
}
|
|
34
|
+
async function main() {
|
|
35
|
+
const args = process.argv.slice(2);
|
|
36
|
+
const flags = new Set(args.filter((a) => a.startsWith("--") || /^-[hv]$/.test(a)));
|
|
37
|
+
const words = args.filter((a) => !flags.has(a));
|
|
38
|
+
if (flags.has("--help") || flags.has("-h"))
|
|
39
|
+
return console.log(usage());
|
|
40
|
+
if (flags.has("--version") || flags.has("-v"))
|
|
41
|
+
return console.log(version());
|
|
42
|
+
const exportFlag = args.find((a) => a.startsWith("--export"));
|
|
43
|
+
if (exportFlag) {
|
|
44
|
+
const format = exportFlag.includes("=") ? exportFlag.split("=")[1] : words.shift();
|
|
45
|
+
try {
|
|
46
|
+
const file = exportCv(format ?? "");
|
|
47
|
+
console.log(`${ok("✓")} Saved ${accent(file)}`);
|
|
48
|
+
}
|
|
49
|
+
catch (e) {
|
|
50
|
+
console.error(error(`ekurt: ${e instanceof Error ? e.message : String(e)}`));
|
|
51
|
+
process.exitCode = 1;
|
|
52
|
+
}
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const unknown = [...flags].filter((f) => f !== "--no-boot");
|
|
56
|
+
if (unknown.length) {
|
|
57
|
+
console.error(error(`ekurt: unknown option ${unknown[0]}`) + muted(" (see npx ekurt --help)"));
|
|
58
|
+
process.exitCode = 1;
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (words.length)
|
|
62
|
+
return runOnce(words);
|
|
63
|
+
if (!process.stdin.isTTY)
|
|
64
|
+
return runScript(readFileSync(0, "utf8"));
|
|
65
|
+
await interactive({ showBoot: !flags.has("--no-boot") && Boolean(process.stdout.isTTY) });
|
|
66
|
+
process.exit(0);
|
|
67
|
+
}
|
|
68
|
+
main().catch((e) => {
|
|
69
|
+
console.error(error(`ekurt: ${e instanceof Error ? (e.stack ?? e.message) : String(e)}`));
|
|
70
|
+
process.exit(1);
|
|
71
|
+
});
|
package/dist/contact.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Sends a message through the same endpoint as the Mail app on ekurt.dev (Resend behind it). */
|
|
2
|
+
import { profile } from "./content.js";
|
|
3
|
+
export const LIMITS = { name: 100, email: 200, subject: 150, message: 5000 };
|
|
4
|
+
export const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
5
|
+
/** The site's own checks, so mistakes are caught before the request. */
|
|
6
|
+
export function validate(m) {
|
|
7
|
+
if (!m.name.trim())
|
|
8
|
+
return "Please tell me your name.";
|
|
9
|
+
if (!EMAIL.test(m.email.trim()))
|
|
10
|
+
return "Please enter a valid email address.";
|
|
11
|
+
if (m.message.trim().length < 10)
|
|
12
|
+
return "Your message is a little short.";
|
|
13
|
+
for (const key of Object.keys(LIMITS)) {
|
|
14
|
+
if (m[key].trim().length > LIMITS[key])
|
|
15
|
+
return `The ${key} is too long.`;
|
|
16
|
+
}
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
export async function send(m) {
|
|
20
|
+
try {
|
|
21
|
+
const res = await fetch(profile().contactApi, {
|
|
22
|
+
method: "POST",
|
|
23
|
+
headers: { "Content-Type": "application/json", "User-Agent": "ekurt-cli" },
|
|
24
|
+
body: JSON.stringify({ ...m, subject: m.subject || "Hello from the terminal", company: "" }),
|
|
25
|
+
signal: AbortSignal.timeout(15_000),
|
|
26
|
+
});
|
|
27
|
+
if (res.ok)
|
|
28
|
+
return { ok: true };
|
|
29
|
+
const body = (await res.json().catch(() => ({})));
|
|
30
|
+
if (res.status === 400 && body.error)
|
|
31
|
+
return { ok: false, error: body.error, fallback: false };
|
|
32
|
+
if (res.status === 429)
|
|
33
|
+
return { ok: false, error: body.error ?? "Too many messages. Please try again later.", fallback: true };
|
|
34
|
+
return { ok: false, error: "The mail service is not answering right now.", fallback: true };
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return { ok: false, error: "Could not reach ekurt.dev (are you offline?).", fallback: true };
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** A mailto: link with the message filled in, for when sending fails. */
|
|
41
|
+
export const mailto = (m) => `mailto:${profile().email}?subject=${encodeURIComponent(m.subject || "Hello")}&body=${encodeURIComponent(m.message)}`;
|
package/dist/content.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The site's content, read from data/ (see scripts/sync.ts). Each file is read once, on first use.
|
|
3
|
+
* This module sits one level below the package root in both src/ and dist/, so ../data resolves.
|
|
4
|
+
*/
|
|
5
|
+
import { readFileSync } from "node:fs";
|
|
6
|
+
const DATA = new URL("../data/", import.meta.url);
|
|
7
|
+
const cache = new Map();
|
|
8
|
+
function load(file, parse) {
|
|
9
|
+
if (!cache.has(file))
|
|
10
|
+
cache.set(file, parse(readFileSync(new URL(file, DATA), "utf8")));
|
|
11
|
+
return cache.get(file);
|
|
12
|
+
}
|
|
13
|
+
const json = (file) => load(file, (raw) => JSON.parse(raw));
|
|
14
|
+
export const SERIES = {
|
|
15
|
+
git: { label: "Git", color: "#f05033" },
|
|
16
|
+
javascript: { label: "JavaScript", color: "#e8c400" },
|
|
17
|
+
react: { label: "React", color: "#149eca" },
|
|
18
|
+
nextjs: { label: "Next.js", color: "#8b8f98" },
|
|
19
|
+
notes: { label: "Notes", color: "#14a37f" },
|
|
20
|
+
};
|
|
21
|
+
export const SERIES_ORDER = ["git", "javascript", "react", "nextjs", "notes"];
|
|
22
|
+
export const PROJECT_CATEGORIES = ["products", "apps", "games", "learning", "fan-sites"];
|
|
23
|
+
export const CATEGORY_LABELS = {
|
|
24
|
+
products: "Products",
|
|
25
|
+
apps: "Apps",
|
|
26
|
+
games: "Games",
|
|
27
|
+
learning: "Learning",
|
|
28
|
+
"fan-sites": "Fan Sites",
|
|
29
|
+
};
|
|
30
|
+
export const BOOKMARK_CATEGORIES = [
|
|
31
|
+
{ id: "learn", label: "Learn" },
|
|
32
|
+
{ id: "design", label: "Design" },
|
|
33
|
+
{ id: "tools", label: "Tools" },
|
|
34
|
+
];
|
|
35
|
+
export const posts = () => json("posts.json");
|
|
36
|
+
export const projects = () => json("projects.json");
|
|
37
|
+
export const bookmarks = () => json("bookmarks.json");
|
|
38
|
+
export const games = () => json("games.json");
|
|
39
|
+
export const profile = () => json("profile.json");
|
|
40
|
+
export const cv = () => json("cv.json");
|
|
41
|
+
/** The terminal's own about text when there is one (data/about.terminal.md), else the site's. */
|
|
42
|
+
export const about = () => {
|
|
43
|
+
try {
|
|
44
|
+
return load("about.terminal.md", (raw) => raw);
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
return load("about.md", (raw) => raw);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/** The package version, for --version and neofetch. */
|
|
51
|
+
export const version = () => json("../package.json").version;
|
|
52
|
+
/** Posts of one series, in lesson order. */
|
|
53
|
+
export const postsIn = (series) => posts().filter((p) => p.series === series);
|
|
54
|
+
/** "https://ekurt.dev/blog" from "/blog". */
|
|
55
|
+
export const siteUrl = (route = "/") => new URL(route, profile().url).href;
|
package/dist/export.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** `ekurt --export md|json`: the CV as a file in the current folder. */
|
|
2
|
+
import { writeFileSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { cv, profile } from "./content.js";
|
|
5
|
+
export function cvMarkdown() {
|
|
6
|
+
const p = profile();
|
|
7
|
+
const c = cv();
|
|
8
|
+
const out = [
|
|
9
|
+
`# ${p.name}`,
|
|
10
|
+
"",
|
|
11
|
+
`**${p.role}** · ${p.focus}`,
|
|
12
|
+
"",
|
|
13
|
+
`- Web: [${p.url.replace("https://", "")}](${p.url})`,
|
|
14
|
+
`- Mail: [${p.email}](mailto:${p.email})`,
|
|
15
|
+
...p.socials.map((s) => `- ${s.label}: [${s.href.replace(/^https:\/\/(www\.)?/, "").replace(/\/$/, "")}](${s.href})`),
|
|
16
|
+
`- Based in: ${c.basedIn}`,
|
|
17
|
+
"",
|
|
18
|
+
c.summary,
|
|
19
|
+
"",
|
|
20
|
+
"## Skills",
|
|
21
|
+
"",
|
|
22
|
+
...c.skills.map((s) => `- **${s.group}:** ${s.items.join(", ")}`),
|
|
23
|
+
"",
|
|
24
|
+
"## Experience",
|
|
25
|
+
];
|
|
26
|
+
for (const job of c.experience) {
|
|
27
|
+
out.push("", `### ${job.company} · ${job.role}`, "", `*${job.when} · ${job.where}*${job.link ? ` · [${job.link}](${job.link})` : ""}`, "");
|
|
28
|
+
out.push(...job.points.map((point) => `- ${point}`));
|
|
29
|
+
}
|
|
30
|
+
out.push("", "## Projects", "");
|
|
31
|
+
for (const project of c.projects) {
|
|
32
|
+
out.push(`- **[${project.title}](${project.url})**${project.tag ? ` (${project.tag})` : ""}: ${project.summary} _${project.stack}_`);
|
|
33
|
+
}
|
|
34
|
+
out.push("", "## Education", "");
|
|
35
|
+
out.push(...c.education.map((e) => `- **${e.school}**${e.degree ? ` · ${e.degree}` : ""}, ${e.field} (${e.when})`));
|
|
36
|
+
out.push("", "## Languages", "");
|
|
37
|
+
out.push(...c.languages.map((l) => `- ${l.name}: ${l.level}`));
|
|
38
|
+
out.push("", "---", "", `Generated by \`npx ekurt\` · ${p.url}`, "");
|
|
39
|
+
return out.join("\n");
|
|
40
|
+
}
|
|
41
|
+
export function cvJson() {
|
|
42
|
+
const { apps: _apps, contactApi: _api, stack: _stack, ...person } = profile();
|
|
43
|
+
return { ...person, ...cv() };
|
|
44
|
+
}
|
|
45
|
+
/** Writes the file and returns its path. */
|
|
46
|
+
export function exportCv(format, dir = process.cwd()) {
|
|
47
|
+
const base = profile().name.toLowerCase().replace(/\s+/g, "-") + "-cv";
|
|
48
|
+
if (format === "md" || format === "markdown") {
|
|
49
|
+
const file = path.join(dir, `${base}.md`);
|
|
50
|
+
writeFileSync(file, cvMarkdown());
|
|
51
|
+
return file;
|
|
52
|
+
}
|
|
53
|
+
if (format === "json") {
|
|
54
|
+
const file = path.join(dir, `${base}.json`);
|
|
55
|
+
writeFileSync(file, JSON.stringify(cvJson(), null, 2) + "\n");
|
|
56
|
+
return file;
|
|
57
|
+
}
|
|
58
|
+
throw new Error(`unknown format "${format}" (use md or json)`);
|
|
59
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/** Bugsweeper rules, the same as the Arcade on ekurt.dev: a board is a flat array of cells, row by row. */
|
|
2
|
+
export const LEVELS = [
|
|
3
|
+
{ id: "easy", label: "Easy", cols: 9, rows: 9, bugs: 10 },
|
|
4
|
+
{ id: "medium", label: "Medium", cols: 12, rows: 12, bugs: 24 },
|
|
5
|
+
{ id: "hard", label: "Hard", cols: 16, rows: 16, bugs: 40 },
|
|
6
|
+
];
|
|
7
|
+
export const emptyBoard = (level) => Array.from({ length: level.cols * level.rows }, () => ({ bug: false, open: false, flag: false, near: 0 }));
|
|
8
|
+
export function neighbours(level, index) {
|
|
9
|
+
const x = index % level.cols;
|
|
10
|
+
const y = Math.floor(index / level.cols);
|
|
11
|
+
const out = [];
|
|
12
|
+
for (let dy = -1; dy <= 1; dy++) {
|
|
13
|
+
for (let dx = -1; dx <= 1; dx++) {
|
|
14
|
+
const nx = x + dx;
|
|
15
|
+
const ny = y + dy;
|
|
16
|
+
if ((dx || dy) && nx >= 0 && ny >= 0 && nx < level.cols && ny < level.rows)
|
|
17
|
+
out.push(ny * level.cols + nx);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return out;
|
|
21
|
+
}
|
|
22
|
+
/** Hides the bugs after the first click, never on that cell or next to it, so the game opens up. */
|
|
23
|
+
export function plantBugs(level, board, safe, random = Math.random) {
|
|
24
|
+
const banned = new Set([safe, ...neighbours(level, safe)]);
|
|
25
|
+
const spots = board.map((_, i) => i).filter((i) => !banned.has(i));
|
|
26
|
+
for (let i = spots.length - 1; i > 0; i--) {
|
|
27
|
+
const j = Math.floor(random() * (i + 1));
|
|
28
|
+
[spots[i], spots[j]] = [spots[j], spots[i]];
|
|
29
|
+
}
|
|
30
|
+
const bugs = new Set(spots.slice(0, level.bugs));
|
|
31
|
+
const next = board.map((c, i) => ({ ...c, bug: bugs.has(i) }));
|
|
32
|
+
return next.map((c, i) => ({ ...c, near: neighbours(level, i).filter((n) => next[n].bug).length }));
|
|
33
|
+
}
|
|
34
|
+
/** Opens a cell; a cell with no bugs around opens its whole empty area. */
|
|
35
|
+
export function reveal(level, board, index) {
|
|
36
|
+
const next = board.slice();
|
|
37
|
+
const queue = [index];
|
|
38
|
+
while (queue.length) {
|
|
39
|
+
const i = queue.pop();
|
|
40
|
+
const cell = next[i];
|
|
41
|
+
if (cell.open || cell.flag)
|
|
42
|
+
continue;
|
|
43
|
+
next[i] = { ...cell, open: true };
|
|
44
|
+
if (!cell.bug && cell.near === 0)
|
|
45
|
+
queue.push(...neighbours(level, i));
|
|
46
|
+
}
|
|
47
|
+
return next;
|
|
48
|
+
}
|
|
49
|
+
/** Opening a number whose bugs are all flagged opens the rest of its neighbours. Null when it does not apply. */
|
|
50
|
+
export function chord(level, board, index) {
|
|
51
|
+
const cell = board[index];
|
|
52
|
+
if (!cell.open || cell.near === 0)
|
|
53
|
+
return null;
|
|
54
|
+
const around = neighbours(level, index);
|
|
55
|
+
if (around.filter((n) => board[n].flag).length !== cell.near)
|
|
56
|
+
return null;
|
|
57
|
+
return around.reduce((b, n) => reveal(level, b, n), board);
|
|
58
|
+
}
|
|
59
|
+
export const hitBug = (board) => board.some((c) => c.open && c.bug);
|
|
60
|
+
export const cleared = (board) => board.every((c) => c.bug || c.open);
|
|
61
|
+
/** "1:05" from 65 seconds. */
|
|
62
|
+
export const clock = (seconds) => `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bugsweeper in the terminal: find the bugs hidden in a grid of code. The first cell you open is
|
|
3
|
+
* always safe; numbers count the bugs next door. Best times last for the session.
|
|
4
|
+
*/
|
|
5
|
+
import chalk from "chalk";
|
|
6
|
+
import { accent, bold, COLORS, error, muted, ok } from "../ui/style.js";
|
|
7
|
+
import { direction, isQuit } from "../ui/screen.js";
|
|
8
|
+
import { chord, cleared, clock, emptyBoard, hitBug, LEVELS, plantBugs, reveal } from "./board.js";
|
|
9
|
+
const NUMBER_COLORS = ["", "#79c0ff", "#7ee787", "#ff7b72", "#d2a8ff", "#ffa657", "#56d4dd", "#e6edf3", "#8b93a3"];
|
|
10
|
+
const best = new Map();
|
|
11
|
+
export class Bugsweeper {
|
|
12
|
+
tick = 1000;
|
|
13
|
+
level = LEVELS[0];
|
|
14
|
+
board = [];
|
|
15
|
+
cursor = 0;
|
|
16
|
+
state = "ready";
|
|
17
|
+
startedAt = 0;
|
|
18
|
+
endedAt = 0;
|
|
19
|
+
record = false;
|
|
20
|
+
constructor(levelId) {
|
|
21
|
+
this.restart(LEVELS.find((l) => l.id === levelId) ?? LEVELS[0]);
|
|
22
|
+
}
|
|
23
|
+
restart(level = this.level) {
|
|
24
|
+
this.level = level;
|
|
25
|
+
this.board = emptyBoard(level);
|
|
26
|
+
this.cursor = Math.floor(level.rows / 2) * level.cols + Math.floor(level.cols / 2);
|
|
27
|
+
this.state = "ready";
|
|
28
|
+
this.record = false;
|
|
29
|
+
}
|
|
30
|
+
frameWidth() {
|
|
31
|
+
return this.level.cols * 3 + 2;
|
|
32
|
+
}
|
|
33
|
+
seconds() {
|
|
34
|
+
if (this.state === "ready")
|
|
35
|
+
return 0;
|
|
36
|
+
const end = this.state === "playing" ? Date.now() : this.endedAt;
|
|
37
|
+
return Math.max(this.state === "playing" ? 0 : 1, Math.floor((end - this.startedAt) / 1000));
|
|
38
|
+
}
|
|
39
|
+
key(key, input) {
|
|
40
|
+
if (isQuit(key))
|
|
41
|
+
return "quit";
|
|
42
|
+
const move = direction(key);
|
|
43
|
+
if (move)
|
|
44
|
+
return this.move(move);
|
|
45
|
+
if (["1", "2", "3"].includes(input))
|
|
46
|
+
return this.restart(LEVELS[Number(input) - 1]);
|
|
47
|
+
if (key.name === "r")
|
|
48
|
+
return this.restart();
|
|
49
|
+
if (key.name === "f" || key.name === "x")
|
|
50
|
+
return this.flag();
|
|
51
|
+
if (key.name === "space" || key.name === "return" || key.name === "enter")
|
|
52
|
+
return this.open();
|
|
53
|
+
}
|
|
54
|
+
move(to) {
|
|
55
|
+
const { cols, rows } = this.level;
|
|
56
|
+
const x = this.cursor % cols;
|
|
57
|
+
const y = Math.floor(this.cursor / cols);
|
|
58
|
+
const nx = to === "left" ? Math.max(0, x - 1) : to === "right" ? Math.min(cols - 1, x + 1) : x;
|
|
59
|
+
const ny = to === "up" ? Math.max(0, y - 1) : to === "down" ? Math.min(rows - 1, y + 1) : y;
|
|
60
|
+
this.cursor = ny * cols + nx;
|
|
61
|
+
}
|
|
62
|
+
flag() {
|
|
63
|
+
if (this.state !== "ready" && this.state !== "playing")
|
|
64
|
+
return;
|
|
65
|
+
const cell = this.board[this.cursor];
|
|
66
|
+
if (cell.open)
|
|
67
|
+
return;
|
|
68
|
+
this.board = this.board.map((c, i) => (i === this.cursor ? { ...c, flag: !c.flag } : c));
|
|
69
|
+
}
|
|
70
|
+
open() {
|
|
71
|
+
if (this.state === "won" || this.state === "lost")
|
|
72
|
+
return this.restart();
|
|
73
|
+
const index = this.cursor;
|
|
74
|
+
const cell = this.board[index];
|
|
75
|
+
if (cell.flag)
|
|
76
|
+
return;
|
|
77
|
+
let next = this.board;
|
|
78
|
+
if (cell.open) {
|
|
79
|
+
const chorded = chord(this.level, next, index);
|
|
80
|
+
if (!chorded)
|
|
81
|
+
return;
|
|
82
|
+
next = chorded;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
if (this.state === "ready") {
|
|
86
|
+
next = plantBugs(this.level, next, index);
|
|
87
|
+
this.state = "playing";
|
|
88
|
+
this.startedAt = Date.now();
|
|
89
|
+
}
|
|
90
|
+
next = reveal(this.level, next, index);
|
|
91
|
+
}
|
|
92
|
+
this.board = next;
|
|
93
|
+
if (hitBug(next))
|
|
94
|
+
this.finish("lost");
|
|
95
|
+
else if (cleared(next))
|
|
96
|
+
this.finish("won");
|
|
97
|
+
}
|
|
98
|
+
finish(state) {
|
|
99
|
+
this.state = state;
|
|
100
|
+
this.endedAt = Date.now();
|
|
101
|
+
if (state === "won") {
|
|
102
|
+
// Every bug gets its flag, like the site does.
|
|
103
|
+
this.board = this.board.map((c) => (c.bug ? { ...c, flag: true } : c));
|
|
104
|
+
const seconds = this.seconds();
|
|
105
|
+
const previous = best.get(this.level.id);
|
|
106
|
+
this.record = previous === undefined || seconds < previous;
|
|
107
|
+
if (this.record)
|
|
108
|
+
best.set(this.level.id, seconds);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
cell(cell, focused) {
|
|
112
|
+
const over = this.state === "lost";
|
|
113
|
+
let text = " · ";
|
|
114
|
+
let fg = "#484f58";
|
|
115
|
+
let bgColor = COLORS.surface;
|
|
116
|
+
if (cell.open && cell.bug) {
|
|
117
|
+
text = " ✱ ";
|
|
118
|
+
fg = "#ffffff";
|
|
119
|
+
bgColor = "#da3633";
|
|
120
|
+
}
|
|
121
|
+
else if (cell.open) {
|
|
122
|
+
bgColor = null;
|
|
123
|
+
text = cell.near ? ` ${cell.near} ` : " ";
|
|
124
|
+
fg = NUMBER_COLORS[cell.near] || COLORS.text;
|
|
125
|
+
}
|
|
126
|
+
else if (cell.flag) {
|
|
127
|
+
const wrong = over && !cell.bug;
|
|
128
|
+
text = wrong ? " ✗ " : " ⚑ ";
|
|
129
|
+
fg = wrong ? COLORS.muted : COLORS.orange;
|
|
130
|
+
}
|
|
131
|
+
else if (over && cell.bug) {
|
|
132
|
+
text = " ✱ ";
|
|
133
|
+
fg = COLORS.error;
|
|
134
|
+
}
|
|
135
|
+
if (focused) {
|
|
136
|
+
bgColor = COLORS.focus;
|
|
137
|
+
fg = "#ffffff";
|
|
138
|
+
}
|
|
139
|
+
const paint = bgColor ? chalk.bgHex(bgColor).hex(fg) : chalk.hex(fg);
|
|
140
|
+
return cell.open && cell.near ? paint.bold(text) : paint(text);
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
const { cols } = this.level;
|
|
144
|
+
const flags = this.board.filter((c) => c.flag).length;
|
|
145
|
+
const levels = LEVELS.map((l, i) => (l.id === this.level.id ? ok(bold(`${i + 1} ${l.label}`)) : muted(`${i + 1} ${l.label}`))).join(" ");
|
|
146
|
+
const record = best.get(this.level.id);
|
|
147
|
+
const stats = [
|
|
148
|
+
`${error("✱")} ${bold(String(this.level.bugs - flags))} ${muted("left")}`,
|
|
149
|
+
`${muted("time")} ${bold(clock(this.seconds()))}`,
|
|
150
|
+
record !== undefined ? `${muted("best")} ${clock(record)}` : "",
|
|
151
|
+
].filter(Boolean);
|
|
152
|
+
const border = (l, r) => muted(l + "─".repeat(cols * 3) + r);
|
|
153
|
+
const grid = [];
|
|
154
|
+
for (let y = 0; y < this.level.rows; y++) {
|
|
155
|
+
const row = this.board.slice(y * cols, (y + 1) * cols).map((c, x) => this.cell(c, this.state !== "won" && y * cols + x === this.cursor));
|
|
156
|
+
grid.push(muted("│") + row.join("") + muted("│"));
|
|
157
|
+
}
|
|
158
|
+
const status = this.state === "won"
|
|
159
|
+
? ok(`All bugs found in ${clock(this.seconds())}${this.record ? " — new best!" : ""}`) + muted(" space plays again")
|
|
160
|
+
: this.state === "lost"
|
|
161
|
+
? error("You opened a bug. ") + muted("space or r to try again")
|
|
162
|
+
: this.state === "ready"
|
|
163
|
+
? muted("Open any cell to start — the first one is always safe.")
|
|
164
|
+
: muted("Numbers count the bugs next door.");
|
|
165
|
+
return [
|
|
166
|
+
`${bold("Bugsweeper")} ${levels}`,
|
|
167
|
+
stats.join(muted(" ")),
|
|
168
|
+
"",
|
|
169
|
+
border("╭", "╮"),
|
|
170
|
+
...grid,
|
|
171
|
+
border("╰", "╯"),
|
|
172
|
+
status,
|
|
173
|
+
"",
|
|
174
|
+
muted(`${accent("←↑↓→")} move ${accent("space")} open ${accent("f")} flag ${accent("r")} restart ${accent("q")} quit`),
|
|
175
|
+
];
|
|
176
|
+
}
|
|
177
|
+
}
|