Giter Site home page Giter Site logo

kpostekk / caats Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 1.0 9.84 MB

Cats as a Timetable Service for PJATK students.

Home Page: https://caats.app

License: GNU Affero General Public License v3.0

JavaScript 1.43% TypeScript 92.87% HTML 4.31% CSS 0.21% Dockerfile 1.17%
pjatk pjwstk graphql nestjs react reverse-engineering prisma typescript

caats's Introduction

Tak, lubię SYCe. A co?

Cats as a Timetable Service

image1

Dlaczego?

CaaTS Altapi Plan Zajęć PJATK
Średni czas oczekiwania na zapytania <45ms <115ms <620ms (lub <1730ms w ogólnej wersji)
Wygodna aplikacja webowa 🤔
PWA
Logowanie i synchronizacja
Wsparcie dla subskrybcji ICS
Dostęp do API ✅ GraphQL, OpenAPI v3 REST ✅ OpenAPIv3 REST
Format zapytań GraphQL, REST REST ViewState*

*zaobserwowany stack technologiczny - może się różnić w rzeczywistości

moze teraz wam sie uda reaktywowac lustro

caats's People

Contributors

kpostekk avatar rafalopilowski1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rafalopilowski1

caats's Issues

[app/ux][app/search] Ideas and quality of life improvments

Co dodać:

  • kliknięcie logo przenosi do kokpitu (https://caats.app/app) -> imo warto dodać przynajmniej na mobilce
    image

  • dodanie opcji filtrowania (głównym problemem jest niechronologiczne układanie rekordów — np. po dacie jak w ss poniżej)
    image

Poprawki:

  • ew. dodanie opcji zmieniania aktualnych grup w ustawieniach bez wywalania sobie całej zawartości (jest też szansa, że jest to tylko problem po mojej stronie bo coś zjebałem xd)

problem

jakiś taki nie wiem idk bez szału - trzeba poprawić

[repo] No .env.example file

Hi, this repo does not contain any .env.example file for potential contributors to use.
I wanted to run the project locally out of compose.yml, but it requires the .env file to run. I would love to help you with that, unfortunately, I have no clue what this file shall contain. It makes it harder for people to contribute.

Thank you for reading and keep up with this awesome project!

enable selecting particular curses from group

when doing an ITN curse, only one curse from particular group is in interest, therefore it would be nice to have an option to choose which curser you subscribe to after selecting a group

[app/ux] Introduce `NowProvider` for current `DateTime` synchronization

I'm working on minor UX improvements:

  • #41
  • Bring back current time indicator a'la Altapi on a timeline:
// ...
{now.hasSame(DateTime.fromJSDate(beginDate), 'day') && (
<hr
  className="absolute grow border-red-500"
  style={{
    top:
      scale *
      now.diff(DateTime.fromJSDate(beginDate)).as('milliseconds'),
    left: '2.05rem',
    width: `calc(100% - 2.05rem)`,
  }}
/>
  • Extend colored background on timeline event, when it is ongoing (current time indicator will be underneath the event)
// ...
<div
  className={classNames(
    'absolute z-0 h-full w-2 group-hover:w-4/5 duration-200 ease-in-out',
    !['Ćwiczenia', 'Wykład'].includes(props.type) &&
      'bg-slate-300 group-hover:bg-slate-900',
    props.type === 'Ćwiczenia' && 'bg-sky-300 group-hover:bg-sky-900',
    props.type === 'Wykład' && 'bg-rose-300 group-hover:bg-rose-900',
    isCurrentEvent && 'w-4/5'
  )}
/>
// ...

I would like to reduce usage of intervals to the minimum and have a centralized NowContext, which will be a combination of useState() and createContext().

This would allow to have only one useInterval() in whole app - inside a NowProvider element.

This would also reduce imports on components and pages.

NowProvider would look like this:

import { ReactNode, createContext, useState } from 'react'
import { DateTime } from 'luxon'
import { useInterval } from 'react-use'

export const NowContext = createContext(DateTime.now())
const NowContextProvider = NowContext.Provider

export const NowProvider = ({ children }: { children: ReactNode }) => {
  const [now, setNow] = useState(DateTime.now())
  useInterval(() => setNow(DateTime.now()), 1000)
  return (
    <>
      <NowContextProvider value={now}>{children}</NowContextProvider>
    </>
  )
}

It will wrap a whole app inside main.tsx like this:

import { NowContext } from './contexts/NowContext'
// ...
<React.StrictMode>
   <NowProvider>
       // ...
   </NowProvider>
</React.StrictMode>

All components willing to receive a current DateTime would transition from:

const [now, setNow] = useState(DateTime.now())
useInterval(() => setNow(DateTime.now()),1000)

to this:

import { NowContext } from '../../contexts/NowContext'
// ...
const now = useContext(NowContext)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.