DeepSeek Harness Remote
DeepSeek Harness Remote 可將手機或另一台電腦與你運行 DeepSeek Harness 的電腦安全連接,隨時隨地繼續你的工作,方便隨時查看進度並繼續工作。
AI 翻譯
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗Try the Live Calculator · Screenshots · Features · Getting started
A calculator with a soft neumorphic interface, written in strict TypeScript with no UI framework. It offers two calculators in one page: a NORMAL calculator that evaluates left to right like a classic pocket calculator, and a PRO calculator with real operator precedence, parentheses, squares and square roots. Both show the result live while you type, and both are fully usable from the mouse or the keyboard.
The project is built as an exercise in clean, testable design: calculation logic is completely separate from the DOM, and the whole thing is covered by an automated test suite.
Hosted on Vercel. Switch between NORMAL and PRO, and between LIGHT and DARK, with the two toggles above the calculator; your choice is remembered on that device.
Real screenshots of the running app. The large display shows the live result before = is pressed.
| LIGHT | DARK | |
|---|---|---|
NORMAL2 + 3 × 4 → 20 (left to right) | ||
PRO2 + 3 × (4 + √16) → 26 (precedence, parentheses, √) |
Two calculators
2 + 3 × 4 = 20.2 + 3 × 4 = 14.5 + 2 and the large display already shows 7, with no = needed. While you type a single number it is shown exactly as typed (5., 0.50). An unfinished expression (5 +, (5 + 3) keeps showing the last valid value instead of an early error.2 + 3 × 4, and 2 + 3 × 4 = once finished). Long expressions scroll and keep the newest part in view.PRO extras
((1 + 2) × (3 + 4)) = 21.x²) and square root (√).5 × -(2 + 3) = -25.2(3) becomes 2 × (3).Error when you press =, never silently repaired.Shared behavior
Digits, decimal point, + − × ÷, AC, +/- and % with contextual percentage rules:
| Keys | Result |
|---|---|
50 % | 0.5 |
200 + 10 % = | 220 |
200 - 10 % = | 180 |
200 × 10 % = | 20 |
200 ÷ 10 % = | 2000 |
Numbers are limited to 15 digits. Values keep full precision internally and are rounded only for display, so 0.1 + 0.2 = 0.3. Integers are exact up to 2^53; larger results use exponent notation (for example 9.999999998e+19).
Division by zero, √ of a negative number and overflow show Error; the next digit or AC recovers.
Interface
localStorage (only these two preferences are stored, never the calculation). Invalid or unavailable storage falls back to the defaults. A saved dark theme or PRO mode is applied before the first paint to avoid a flash of the wrong look.Keyboard input
| Key | Action |
|---|---|
0–9, . | Digits and decimal point |
+ - * / | Operators (- also starts a negative number in PRO) |
Enter or = | Equals |
Escape | AC |
% | Percent |
( ) | Parentheses (PRO only) |
Keys are ignored while typing in a text field and when Ctrl, Cmd or Alt is held, so browser shortcuts keep working. There are no keyboard shortcuts for x² and √.
Taken from package.json; there are no runtime dependencies.
strict mode, with unused locals and parameters treated as errorsCalculation code never touches the DOM. Rendering, input handling, settings and calculation each live in their own small classes, wired together in one place.
src/
├── main.ts # entry point
├── calculator/ # calculation logic (no DOM)
│ ├── BasicCalculator.ts # interface both calculators implement
│ ├── CalculatorEngine.ts # NORMAL rules as state transitions
│ ├── CalculatorState.ts # typed state model and display/preview text
│ ├── NormalCalculator.ts # engine + the expression entered on it
│ ├── Operator.ts, NumberEntry.ts, NumberFormatter.ts
│ └── pro/ # PRO: tokens, evaluator, formatter, calculator
├── classes/ # CalculatorApp (composition root), InputHandler
├── ui/ # CalculatorUI (rendering), DisplayFitter
├── settings/ # CalculatorModeSetting, PreferenceStore, UserPreferences
├── themes/ # ThemeManager
└── styles/style.css # layout and both themes
| Class | Responsibility |
|---|---|
CalculatorApp | Composition root. Connects input, the active calculator, the UI, the settings and the saved preferences, and owns the start/dispose lifecycle. |
BasicCalculator | The interface (displayValue, expressionText, digits, operators, =, AC…) that lets the app drive either calculator the same way. |
CalculatorEngine, CalculatorState | NORMAL rules as transitions between typed states (entering, awaitingOperand, result, error), including the left-to-right live preview. |
NormalCalculator | Wraps the engine and records the expression for display. It never calculates by itself. |
ProCalculator | Turns key presses into expression tokens and refuses key presses that would build a malformed expression. |
ExpressionEvaluator | A pure recursive-descent parser for PRO expressions (precedence, parentheses, x², √, unary minus). No eval. |
ExpressionFormatter | Turns tokens into the expression text. |
Operator, NumberEntry, NumberFormatter | Shared operator table and percent rule, number typing rules, and display formatting. |
InputHandler | Converts clicks and key presses into typed callbacks; removes all its listeners in dispose(). |
CalculatorUI, DisplayFitter | Render the display, expression line and toggles; shrink the font only when text overflows. |
CalculatorModeSetting, ThemeManager | The two independent settings. Neither knows about the other. |
PreferenceStore, UserPreferences | Safe localStorage access and the two typed, validated preferences. |
calculator/, rendering in CalculatorUI, events in InputHandler, persistence in settings/. The mode and theme settings are separate classes, and tests check that they import nothing and know nothing of each other.NormalCalculator only tracks the expression and leaves every number to CalculatorEngine.CalculatorApp, ProCalculator, ThemeManager and CalculatorModeSetting receive their collaborators or initial values through constructors (with defaults), and the app uses NORMAL and PRO interchangeably through BasicCalculator. This is what makes the unit tests easy to write.Operator.calculate, the percent rule, number entry rules, number formatting and operator symbols instead of duplicating them.eval; a short recursive-descent parser, and previews are computed from existing state without a second evaluator.Not every SOLID principle is demonstrated formally; the points above are the ones the code actually shows.
Requirements: Node.js 22.13 or newer (as required by the current Vite, Vitest and jsdom versions) and npm.
git clone https://github.com/TamarMosheev/Neumorphism-Calculator-.git
cd Neumorphism-Calculator-
npm install
npm run dev
Vite prints the local address (by default http://localhost:5173/); open it in your browser.
npm run build # type-check with tsc, then build to dist/
npm run preview # serve the production build locally
npm test # run the whole test suite once
npx tsc --noEmit # type-check only
npm test runs the suite once with Vitest. At the time of writing, 1579 tests in 30 files pass. They cover:
index.html, that click the actual buttons and check the display and expression line;Tests live next to the code they cover, in *.test.ts files.
Version 0.1.0. Both calculators, both themes, persistence and keyboard input are working. A live demo and screenshots are available above. No license has been specified.