प्रोजेक्ट टेम्पलेट·Pro
Vite + Vue + TypeScript
Vue 3 और TypeScript में फ़ोकस टाइमर, Vite 8 से बना: फ़ोकस सेशन, ब्रेक, आज का कुल समय, दो composable और एक टेस्ट। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 50 पैकेज (करीब 85 MB) डाउनलोड करता है।
इसे इंस्टॉल करने के लिए PocketCode Pro चाहिए।
अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।
प्रीव्यू
फ़ाइलें
README.md
index.html
package-lock.json
package.json
public/favicon.svg
src/App.vue
src/main.ts
src/style.css
src/timer.ts
src/useStored.ts
src/useTimer.ts
test/timer.test.ts
tsconfig.json
vite.config.tsREADME.md
# Focus timer: Vue + Vite + TypeScript A Pomodoro-style timer in Vue 3 and TypeScript, built with Vite: focus sessions, short breaks and a long break every few sessions. It keeps today's sessions and your chosen lengths in the browser (localStorage). It shows the usual pieces of a Vue project: single-file components with `<script setup>`, refs and computed values, two composables and a test. ## Run it in PocketCode You need the app's Linux environment with Node.js 20.19 or newer (the Developer pack in Terminal › Linux includes Node.js and npm). 1. Open the terminal in this project's folder (Open Terminal Here, in the editor menu). 2. Install the dependencies. The first time downloads about 50 packages (around 85 MB on disk) and needs internet: ```sh npm install ``` 3. Start the development server: ```sh npm run dev ``` 4. Open http://localhost:5173 in the DevBrowser (or in the phone's browser). Saving a file updates the page. Stop the server with Ctrl+C in the terminal. ## Other commands | Command | What it does | |---|---| | `npm run build` | Type-checks with `vue-tsc` and writes the production build to `dist/` | | `npm run preview` | Serves `dist/` on http://localhost:4173 | | `npm run typecheck` | Only the type check | | `npm test` | Tests for `src/timer.ts` with Node's test runner (Node 22.18 or newer) | ## Where things are | Path | What it does | |---|---| | `index.html` | The page Vite serves; it loads `src/main.ts` |यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।
1.0.0 में बदलाव
पहला संस्करण।