You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
Standa Lukeš bd5e5a6a48 Merge branch 'exyi/task-url-routing' into master 4 years ago
frontend Merge master 4 years ago
server Add POST to tasks.json 4 years ago
.gitignore init commit - renderovatko a definice uloh 4 years ago
README.md Some text into README.md 4 years ago
graphviz_render.py init commit - renderovatko a definice uloh 4 years ago
tasks-random.txt tooling: fixed rollup and package.json 4 years ago
tasks.json tasks.json: přidány typy do tasks.json 4 years ago

README.md

Kurzovity grafik uloh

Preview: https://ksp.exyi.cz, credentials jsou stejné jako na testwebu. Automaticky nasazené z master branche

Spuštění pro vývoj

Závislosti (Arch packages): dotnet-sdk, yarn, aspnet-runtime

cd frontend/
yarn dev

Vývoj

Frontend je napsaný ve Svelte, tady je (slušný) tutoriál: https://svelte.dev/tutorial/basics. Pokud se nakamarádíte s Javascriptem, existuje série knížek You Don't Know JS (Yet). Taky používáme TypeScript (typy do Javascriptu) a D3 (magická knihovna na něco s daty a SVG)

Server je magická proxy napsaná v ASP.NET Core - na produkci by neměla být potřeba, když KSP web přesvědčíme k tomu:

  • vrátit /tasks.json
  • POSTem uložit /tasks.json, když jsem org (vlastně ani není potřeba)
  • vrátit /grafik v té KSP template (je to html obsahující jeden div, link a script)
  • soubory z frontend/public/ (stačí ten javascript a css)