Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…pusdual into dev
  • Loading branch information
probablyjassin committed Oct 13, 2024
2 parents d0b6f7b + 65222d5 commit e3f63dd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 75 deletions.
79 changes: 7 additions & 72 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,10 @@
# Nuxt 3 Minimal Starter
# WebApp für den CampusDual Stundenplan

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
> https://campusdual.nya.care/
## Setup
Eine simple WebApp, für den Stundenplan von CampusDual.
Mit einem Design, dass auf Mobile auch tatsächlich nutzbar ist.

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
Die Seite ist in NuxtJS mit TailwindCSS geschrieben.
Anders als auf CampusDual, werden die Daten nur einmal gefetched;
zwischen Einträgen wechseln dauert also keine Ewigkeit!
12 changes: 9 additions & 3 deletions pages/stundenplan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@
new Date(Number(Object.keys(groupedByDay)[page - 1])).toLocaleDateString("de-DE", { weekday: "long", year: "numeric", month: "long", day: "numeric" })
}}
</p>
<div class="mb-4">
<UPagination v-model="page" :total="data.length" class="mb-4" />
</div>
<span class="mb-4 flex text-center items-center space-x-4">
<UPagination v-model="page" :total="data.length" />
<UButton
:class="{ 'opacity-0': page == Object.keys(groupedByDay).indexOf(today.toString())+1 }"
class="py-2"
@click="page = Object.keys(groupedByDay).indexOf(today.toString())+1">
Zurück zu Heute
</UButton>
</span>
<UTable :rows="schedule[page - 1]" class="w-full" />
<button @click="logout()" class="mt-5 p-2 bg-primary text-white rounded">Anmeldedaten zurücksetzen</button>
</div>
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.

0 comments on commit e3f63dd

Please sign in to comment.