Spaces:
Running
Running
Deploy IRR Charting Tool (Vite build) to static Space
Browse filesAdd built dist output (index.html, assets/ JS+CSS) at repo root and replace the CRA template README with static-SDK front matter (app_file: index.html, no build command).
- README.md +6 -77
- assets/index-DMElPCUM.css +1 -0
- assets/index-REqJWzRf.js +0 -0
- index.html +13 -0
README.md
CHANGED
|
@@ -1,82 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
|
|
|
| 7 |
pinned: false
|
| 8 |
-
app_build_command: npm run build
|
| 9 |
-
app_file: build/index.html
|
| 10 |
-
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
| 16 |
-
|
| 17 |
-
## Available Scripts
|
| 18 |
-
|
| 19 |
-
In the project directory, you can run:
|
| 20 |
-
|
| 21 |
-
### `npm start`
|
| 22 |
-
|
| 23 |
-
Runs the app in the development mode.\
|
| 24 |
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
| 25 |
-
|
| 26 |
-
The page will reload when you make changes.\
|
| 27 |
-
You may also see any lint errors in the console.
|
| 28 |
-
|
| 29 |
-
### `npm test`
|
| 30 |
-
|
| 31 |
-
Launches the test runner in the interactive watch mode.\
|
| 32 |
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
| 33 |
-
|
| 34 |
-
### `npm run build`
|
| 35 |
-
|
| 36 |
-
Builds the app for production to the `build` folder.\
|
| 37 |
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
| 38 |
-
|
| 39 |
-
The build is minified and the filenames include the hashes.\
|
| 40 |
-
Your app is ready to be deployed!
|
| 41 |
-
|
| 42 |
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
| 43 |
-
|
| 44 |
-
### `npm run eject`
|
| 45 |
-
|
| 46 |
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
| 47 |
-
|
| 48 |
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
| 49 |
-
|
| 50 |
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
| 51 |
-
|
| 52 |
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
| 53 |
-
|
| 54 |
-
## Learn More
|
| 55 |
-
|
| 56 |
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
| 57 |
-
|
| 58 |
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
| 59 |
-
|
| 60 |
-
### Code Splitting
|
| 61 |
-
|
| 62 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
| 63 |
-
|
| 64 |
-
### Analyzing the Bundle Size
|
| 65 |
-
|
| 66 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
| 67 |
-
|
| 68 |
-
### Making a Progressive Web App
|
| 69 |
-
|
| 70 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
| 71 |
-
|
| 72 |
-
### Advanced Configuration
|
| 73 |
-
|
| 74 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
| 75 |
-
|
| 76 |
-
### Deployment
|
| 77 |
-
|
| 78 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
| 79 |
-
|
| 80 |
-
### `npm run build` fails to minify
|
| 81 |
-
|
| 82 |
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
|
|
| 1 |
---
|
| 2 |
+
title: IRR Charting Tool
|
| 3 |
+
emoji: 📋
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
pinned: false
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
+
Static IRR charting tool (React + Vite). Offline, no backend.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/index-DMElPCUM.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
:root{--bg:#f4f6f9;--card:#fff;--ink:#1c2430;--muted:#5d6b7d;--line:#d9e0e8;--pri:#1f5fbf;--pri-d:#17479a;--ok:#1a7f4b;--warn:#b26a00;--bad:#b3261e;--bound-bg:#fff6dc;--bound-line:#e0a800;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;font-size:16px;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.5}h1,h2,h3,h4{margin:0 0 .4em;line-height:1.25}code{background:#eef2f7;padding:1px 5px;border-radius:4px;font-size:.85em}.muted{color:var(--muted)}.small{font-size:.85rem}.row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0;align-items:center}.btn{font:inherit;padding:7px 14px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:8px;cursor:pointer}.btn:hover:not(:disabled){border-color:var(--pri);color:var(--pri)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--pri);border-color:var(--pri);color:#fff}.btn.primary:hover:not(:disabled){background:var(--pri-d);color:#fff}.btn.big{padding:10px 20px;font-weight:600}.btn.small{padding:3px 10px;font-size:.85rem}.btn.ghost{background:transparent}.btn.tab.active{background:#e5eefb;border-color:var(--pri);color:var(--pri-d);font-weight:600}.link-btn{background:none;border:none;color:var(--pri);cursor:pointer;font:inherit;padding:0}.link-btn:hover{text-decoration:underline}.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;padding:8px 18px}.brand{font-size:1.05rem}.progress-pill{background:#eef4ff;border:1px solid #c9dbf8;padding:3px 12px;border-radius:999px}.top-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.savestate{font-size:.8rem;width:100%;text-align:right}.savestate.ok{color:var(--ok)}.savestate.bad{color:var(--bad);font-weight:700}.start{display:flex;justify-content:center;padding:30px 16px 60px}.start-card{background:var(--card);max-width:820px;width:100%;padding:30px 34px;border-radius:14px;border:1px solid var(--line)}.start-card h2{margin-top:1.6em;font-size:1.15rem}.lead{font-size:1.05rem;color:#2c3a4d}.field-label{display:block;font-weight:600;margin:18px 0 6px}.text-input{width:100%;font:inherit;font-size:1.05rem;padding:10px 12px;border:1px solid #aab6c5;border-radius:8px}.text-input:focus,.note:focus{outline:2px solid #9fc0f2;border-color:var(--pri)}.error{color:var(--bad);margin-top:6px;font-weight:600}.resume-box{background:#eaf7f0;border:1px solid #9dd5b6;border-radius:10px;padding:12px 16px;margin:16px 0}.instr li{margin-bottom:5px}.intro{white-space:pre-wrap;background:#f7f9fc;border:1px solid var(--line);border-radius:8px;padding:12px 14px}.chart{padding:12px 18px 40px;max-width:1500px;margin:0 auto}.jump{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin-bottom:12px}.legend{margin-left:16px;font-size:.82rem;color:var(--muted)}.chip{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 3px 0 10px;vertical-align:-1px;border:1px solid #9aa7b8}.chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.chip-btn{width:36px;height:30px;font:inherit;font-size:.82rem;border-radius:6px;border:1px solid #9aa7b8;background:#fff;cursor:pointer;padding:0}.chip.done,.chip-btn.done{background:#cfeedd;border-color:#4fa879}.chip.part,.chip-btn.part{background:#ffe9b8;border-color:#d9a21b}.chip.none{background:#fff}.chip-btn.cur{outline:3px solid var(--pri);outline-offset:1px;font-weight:700}.columns{display:grid;grid-template-columns:minmax(340px,5fr) minmax(420px,6fr);gap:16px;align-items:start}.paper-panel{position:sticky;top:96px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px;max-height:calc(100vh - 112px);overflow:auto}.paper-meta{display:flex;gap:12px;align-items:center;margin-bottom:6px}.paper-id{background:var(--pri);color:#fff;border-radius:6px;padding:1px 9px;font-weight:700}.badge.ok{background:#cfeedd;color:#145c37;border-radius:999px;padding:0 10px;font-size:.8rem}.paper-title{font-size:1.3rem}.paper-author{color:#2c3a4d;margin-bottom:4px}.paper-doi{margin-bottom:12px;word-break:break-all}.abstract{font-size:1.05rem;line-height:1.65;white-space:pre-wrap;background:#fafbfd;border:1px solid var(--line);border-radius:8px;padding:12px 14px}.form-panel{display:flex;flex-direction:column;gap:12px}.form-bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;color:var(--muted)}.toggle{cursor:pointer;-webkit-user-select:none;user-select:none}.var-card{background:#fff;border:1px solid var(--line);border-left:5px solid #c4cedb;border-radius:10px;padding:14px 16px}.var-card.answered{border-left-color:var(--ok)}.var-head{display:flex;gap:12px;align-items:flex-start}.var-head h3{margin:0;font-size:1.08rem;display:inline}.var-num{background:#e7ecf3;border-radius:50%;min-width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}.var-key{margin-left:8px;color:var(--muted)}.tag{margin-left:8px;font-size:.75rem;background:#efe6ff;color:#5b2ea8;padding:1px 8px;border-radius:999px}.clear{margin-left:auto;font-size:.85rem;color:var(--muted)}.definition{margin:8px 0;color:#2c3a4d;white-space:pre-wrap}.boundary{background:var(--bound-bg);border:1px solid var(--bound-line);border-left:5px solid var(--bound-line);border-radius:8px;padding:8px 12px;margin:8px 0 10px}.boundary-title{font-size:.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#8a5a00;margin-bottom:2px}.boundary-text{white-space:pre-wrap;font-size:1rem;line-height:1.55}.options{display:flex;flex-wrap:wrap;gap:8px}.options.stacked{flex-direction:column}.opt{display:flex;gap:10px;align-items:flex-start;border:1px solid #b9c4d2;border-radius:8px;padding:8px 12px;cursor:pointer;background:#fff}.opt:hover{border-color:var(--pri)}.opt.selected{background:#e5eefb;border-color:var(--pri);box-shadow:inset 0 0 0 1px var(--pri)}.opt input{margin-top:5px;accent-color:var(--pri);width:16px;height:16px}.opt-body{display:flex;flex-direction:column}.opt-title{font-weight:600}.opt-help{font-size:.9rem;color:#3b4a5e}.note{width:100%;font:inherit;padding:8px 10px;border:1px solid #aab6c5;border-radius:8px;resize:vertical}.nav-bar{display:flex;justify-content:space-between;align-items:center;position:sticky;bottom:0;background:#f4f6f9f2;padding:10px 0;border-top:1px solid var(--line)}.review{display:flex;justify-content:center;padding:24px 16px 60px}.review-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 28px;max-width:900px;width:100%}.ok-box{background:#eaf7f0;border:1px solid #9dd5b6;padding:10px 14px;border-radius:8px}.warn-box{background:#fff4dd;border:1px solid #e3b75a;padding:10px 14px;border-radius:8px;margin-bottom:12px}.miss-table{width:100%;border-collapse:collapse}.miss-table th,.miss-table td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);vertical-align:top}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#141c288c;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px}.modal{background:#fff;border-radius:14px;padding:24px 28px;max-width:560px;width:100%}.callout{background:#e5eefb;border:1px solid #b6cdf2;border-radius:8px;padding:10px 14px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#1c2430;color:#fff;padding:9px 18px;border-radius:8px;z-index:60}@media (max-width: 980px){.columns{grid-template-columns:1fr}.paper-panel{position:static;max-height:none}}
|
assets/index-REqJWzRf.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>IRR Charting Tool</title>
|
| 7 |
+
<script type="module" crossorigin src="./assets/index-REqJWzRf.js"></script>
|
| 8 |
+
<link rel="stylesheet" crossorigin href="./assets/index-DMElPCUM.css">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<div id="root"></div>
|
| 12 |
+
</body>
|
| 13 |
+
</html>
|