Can we use Deno already?
irm https://deno.land/install.ps1 | iex
curl -fsSL https://deno.land/x/install/install.sh | sh
Cats as a Timetable Service for PJATK students.
Home Page: https://caats.app
License: GNU Affero General Public License v3.0
Request to add pm2 support for process managment and cluster creation.
Forced by
Clusters are just side effect
requested REST support by @SirCypkowskyy
I'm working on minor UX improvements:
// ...
{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)`,
}}
/>
// ...
<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)
Every lesson is offsetted by 1.5 hours later after importing ISC to the calendar.
Linked to #30
jakiś taki nie wiem idk bez szału - trzeba poprawić
As sugessted by @vizaav, @aleksandra-indulska and @SirCypkowskyy many improvments can be implemented in a search module.
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
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!
Muszę ci zgłosić problem z caats, w skrócie nie widzi mojej grupy lektoratu japońskiego. Numer grupy to WIs I.4 OB.JAP4lek 110l
idk why tho
Let's jump on ESM hypetrain
idk why, just my random thought
Co dodać:
kliknięcie logo przenosi do kokpitu (https://caats.app/app) -> imo warto dodać przynajmniej na mobilce
dodanie opcji filtrowania (głównym problemem jest niechronologiczne układanie rekordów — np. po dacie jak w ss poniżej)
Poprawki:
Since node v18.11.0 node ships with built-in file watch.
Instead of:
nodemon -w src -e gql,ts --exec \"node -r @swc/register\" src/index.ts
I can use
node --watch-path="src/" -r @swc/register src/index.ts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.