Skip to content

Commit

Permalink
k.s.chj.
Browse files Browse the repository at this point in the history
  • Loading branch information
majusss committed Dec 16, 2023
1 parent 4043356 commit 1879acc
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 173 deletions.
28 changes: 0 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ The phone mode is inspired by the school's timetable

## API Reference

#### Get lists (Selects)

```http
GET /api/timetable/list
```

| Parameters (Optional) | Description |
| :--------------------------------- | :-------------------------------------- |
| `?select=classes\|teachers\|rooms` | Returns only classes, teachers or rooms |

#### Get timetable and other data

```http
GET /api/timetable/getTimetable
```

| Parameter (Default: o1) | Description |
| :---------------------- | :---------------------------------------------------------- |
| `?id=id` | Returns the timetable of a Branch with the specified **id** |

#### Get empty classes

```http
Expand All @@ -68,14 +48,6 @@ The phone mode is inspired by the school's timetable
| `?search=teacher\|branch` | Search substitutions for branch or for a teacher |
| `?query=index` | What api will search in substitution |

#### What is **id** and how do I find it?

| Id prefix | Description | Value |
| :-------- | :--------------- | :----------------------------------------------- |
| `o` | Branch / Classes | `value from /api/timetable/list?select=classes` |
| `n` | Teacher | `value from /api/timetable/list?select=teachers` |
| `s` | Room | `value from /api/timetable/list?select=rooms` |

## Links

[![portfolio](https://img.shields.io/badge/GitHub-rvyk-100000?style=for-the-badge&logo=github&logoColor=white)](https://github.com/rvyk/)
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,39 @@
"dependencies": {
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@types/node": "^20.9.5",
"@types/node": "^20.10.4",
"@types/react": "18.2.38",
"@wulkanowy/timetable-parser": "https://github.com/majusss/timetable-parser-js.git",
"@wulkanowy/timetable-parser": "github:majusss/timetable-parser-js",
"autoprefixer": "^10.4.16",
"axios": "^1.6.2",
"cheerio": "1.0.0-rc.12",
"eslint": "^8.56.0",
<<<<<<< Updated upstream
"eslint-config-next": "^14.0.3",
"flowbite": "^2.2.0",
=======
"eslint-config-next": "^14.0.4",
"flowbite": "^2.2.1",
>>>>>>> Stashed changes
"lodash": "^4.17.21",
"mobile-detect": "^1.4.5",
"next": "14.0.4",
"next-pwa": "^5.6.0",
"next-themes": "^0.2.1",
"node-cache": "^5.1.2",
"node-fetch": "^3.3.2",
"postcss": "^8.4.31",
"postcss": "^8.4.32",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-snowfall": "^1.2.1",
"react-tooltip": "^5.24.0",
"react-tooltip": "^5.25.0",
"sharp": "^0.33.0",
"tailwindcss": "^3.3.6",
"tua-body-scroll-lock": "^1.4.0",
"webpack": "^5.89.0"
},
"devDependencies": {
"cypress": "^13.6.0",
"cypress": "^13.6.1",
"cypress-dotenv": "^2.0.0",
"dotenv": "^16.3.1",
"start-server-and-test": "^2.0.3",
Expand Down
57 changes: 45 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 0 additions & 61 deletions src/pages/api/timetable/getTimetable.ts

This file was deleted.

58 changes: 0 additions & 58 deletions src/pages/api/timetable/list.ts

This file was deleted.

Loading

0 comments on commit 1879acc

Please sign in to comment.