मुख्य सामग्री पर जाएं
प्रोजेक्ट टेम्पलेट·Pro

Vite + React + TypeScript

React और TypeScript में हैबिट ट्रैकर, Vite 8 से बना: हफ़्ते की ग्रिड, लगातार दिनों की गिनती, एक कस्टम हुक और एक टेस्ट। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 25 पैकेज (करीब 80 MB) डाउनलोड करता है।

इसे इंस्टॉल करने के लिए PocketCode Pro चाहिए।

अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।

प्रीव्यू

फ़ाइलें

README.md
index.html
package-lock.json
package.json
public/favicon.svg
src/App.tsx
src/index.css
src/main.tsx
src/useLocalStorage.ts
src/week.ts
test/week.test.ts
tsconfig.json
vite.config.ts

README.md

# Habit tracker: Vite + React + TypeScript A small React app in TypeScript, built with Vite: a weekly grid of habits you tick off day by day, with a streak counter. Habits are saved in the browser (localStorage). It shows the usual pieces of a React project: components, state, a custom hook, typed data 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 25 packages (around 80 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 `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/week.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.tsx` | | `src/App.tsx` | The app: form, weekly grid, streaks |

यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।

1.0.0 में बदलाव

पहला संस्करण।

संबंधित

Next.js + Tailwind + i18nProप्रोजेक्ट टेम्पलेटnext-intl और Tailwind CSS वाला Next.js 15 प्रोजेक्ट, जिसमें /en और /es पर अंग्रेज़ी और स्पेनिश में एक पेज है। डार्क मोड सिस्टम के अनुसार चलता है। Node.js के साथ Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 400 MB डाउनलोड करता है।Vite + Vue + TypeScriptProप्रोजेक्ट टेम्पलेटVue 3 और TypeScript में फ़ोकस टाइमर, Vite 8 से बना: फ़ोकस सेशन, ब्रेक, आज का कुल समय, दो composable और एक टेस्ट। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 50 पैकेज (करीब 85 MB) डाउनलोड करता है।Vite + Svelte + TypeScriptProप्रोजेक्ट टेम्पलेटSvelte 5 और TypeScript में फ़्लैशकार्ड, Vite 8 से बने। हर कार्ड पाँच लाइटनर बॉक्स से होकर गुज़रता है और दोहराने का समय आने पर लौटता है। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 45 पैकेज (करीब 75 MB) डाउनलोड करता है।सादे JavaScript में टू-डू लिस्टProप्रोजेक्ट टेम्पलेटसादे JavaScript मॉड्यूल से बनी टू-डू लिस्ट: जोड़ें, वहीं संपादित करें, टिक करें, फ़िल्टर करें और पूरे हुए हटाएँ; सूची localStorage में सेव रहती है। लॉजिक के लिए Node के टेस्ट रनर वाले टेस्ट हैं। DevBrowser और ऐप के अपने Node.js में चलती है, Linux की ज़रूरत नहीं।बटन (React + Tailwind)मुफ़्तबटनTypeScript बटन, जिसमें प्राइमरी और सेकेंडरी स्टाइल, साफ़ दिखने वाली फ़ोकस रिंग और एक लोडिंग स्पिनर है जो aria-busy भी सेट करता है। सेकेंडरी स्टाइल में डार्क मोड के रंग हैं।स्टैटिक लैंडिंग पेजProप्रोजेक्ट टेम्पलेटसादे HTML और CSS में एक पेज की साइट: मुड़ने वाले मेन्यू वाला हेडर, हीरो, फ़ीचर ग्रिड, FAQ और फ़ुटर। रंग सिस्टम के लाइट या डार्क मोड के हिसाब से बदलते हैं। न बिल्ड स्टेप, न Linux: index.html खोलें और ग्लोब आइकन पर टैप करें।