प्रोजेक्ट टेम्पलेट·Pro
Vite + Svelte + TypeScript
Svelte 5 और TypeScript में फ़्लैशकार्ड, Vite 8 से बने। हर कार्ड पाँच लाइटनर बॉक्स से होकर गुज़रता है और दोहराने का समय आने पर लौटता है। Node.js वाला Linux एनवायरनमेंट चाहिए; पहला npm install लगभग 45 पैकेज (करीब 75 MB) डाउनलोड करता है।
इसे इंस्टॉल करने के लिए PocketCode Pro चाहिए।
अगर आपके Android डिवाइस पर PocketCode इंस्टॉल है, तो यह पेज ऐप में खुलेगा।
प्रीव्यू
फ़ाइलें
README.md
index.html
package-lock.json
package.json
public/favicon.svg
src/App.svelte
src/app.css
src/lib/ReviewCard.svelte
src/lib/leitner.ts
src/lib/storage.ts
src/main.ts
src/vite-env.d.ts
svelte.config.js
test/leitner.test.ts
tsconfig.json
vite.config.tsREADME.md
# Flashcards: Svelte + Vite + TypeScript A flashcard app in Svelte 5 and TypeScript, built with Vite. Cards move through five Leitner boxes: one you know comes back after 2, 4, 8 and then 16 days, one you miss goes back to box 1 and comes back tomorrow. Cards are saved in the browser (localStorage). It shows the usual pieces of a Svelte project: runes (`$state`, `$derived`, `$effect`, `$props`), a component with typed props and a callback, 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 45 packages (around 75 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. With no cards yet, the Review screen offers 5 example cards so you can try it straight away. ## Other commands | Command | What it does | |---|---| | `npm run build` | Checks types and Svelte warnings with `svelte-check`, then writes the production build to `dist/` | | `npm run preview` | Serves `dist/` on http://localhost:4173 | | `npm run check` | Only the check |यह प्रीव्यू छोटा किया गया है। पूरा कंटेंट इंस्टॉल करने पर मिलेगा।
1.0.0 में बदलाव
पहला संस्करण।