Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
e0b5f3c
Lagt over fra local maskin
Sep 9, 2026
23619c8
Rename vite-test => PTG
Sep 9, 2026
0a2bdeb
Merge pull request #7 from IT2810-H26/team_generation
halvortf Sep 9, 2026
c55ccb1
Update README.md
halvortf Sep 9, 2026
fa26491
feat: add grid of pokemon with images and names
Sep 9, 2026
c22fa92
feat: add filterfunctionality for cardgrid
Sep 9, 2026
c45071c
feat: Add option to filter for games
Sep 12, 2026
c804724
docs: Add comments to explain none obvious code
Sep 12, 2026
0e5fbcf
feat: Add icons for typings
Sep 12, 2026
6d90ca6
Added footer and adjusted header.
ayseza Sep 13, 2026
f08c73e
Functionality for having multipage website
Sep 14, 2026
93bc993
Added header to about page
Sep 14, 2026
d86c739
feat: Remove filter for generations
Sep 14, 2026
2299144
Merge pull request #13 from IT2810-H26/Pokemoncards
halvortf Sep 15, 2026
1dcf6f4
Discarded position:fixed from Footer.css
ayseza Sep 15, 2026
9599632
Merge pull request #17 from IT2810-H26/about_page
halvortf Sep 16, 2026
f310373
Changed about from div to button and adjusted css accordingly.
ayseza Sep 16, 2026
98f90e1
Change from LocalStorage -> SessionStorage
Sep 16, 2026
8fc5431
build: Implement Tanstack Query for fetching
Sep 16, 2026
0523499
Merge branch 'dev' into feature/header-footer
halvortf Sep 16, 2026
06e3d95
Merge pull request #15 from IT2810-H26/feature/header-footer
halvortf Sep 16, 2026
e5214cd
Bug: SelectedGeneration was still inn file
Sep 16, 2026
20a3c2e
Merge pull request #22 from IT2810-H26/sessionStorage
joelte Sep 16, 2026
e3535c6
feat: Add pokemon team generation
Sep 16, 2026
0c3dff4
Merge branch 'dev' into team_generation
Sep 16, 2026
2095097
Link to about page via button
Sep 16, 2026
9bd0868
Merge pull request #24 from IT2810-H26/team_generation
joelte Sep 16, 2026
f49d172
Added documentation draft
ayseza Sep 16, 2026
0040da2
feat: Add name filter to search for specific pokemon
Sep 16, 2026
b8420c4
Changed links from button element to Link element
Sep 16, 2026
6de3328
Removed hover effect
Sep 16, 2026
910d17b
Merge pull request #25 from IT2810-H26/about_navigation
joelte Sep 16, 2026
cd88661
Merge pull request #26 from IT2810-H26/feature-namefilter
halvortf Sep 16, 2026
107ffc1
test: Add tests with Vitest
Sep 16, 2026
d5c52fd
feat: Add padding to icons on pokemoncard
Sep 16, 2026
ec2b15b
revert: Revert accidentaly added "2" in previous commit
Sep 16, 2026
436d4d5
Merge pull request #36 from IT2810-H26/carddesign
joelte Sep 16, 2026
5ebdd29
Changed the page title from læringsområde... to PTG.
ayseza Sep 16, 2026
cbb9516
Removed the margin from body in index.css
ayseza Sep 16, 2026
88b5233
Touched up the generate button and added margin to name textbox.
ayseza Sep 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions PTG/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
78 changes: 78 additions & 0 deletions PTG/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)

## React Compiler

The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.

Note: This will impact Vite dev & build performances.
You can also try [the experimental native React Compiler support in plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md#rust-react-compiler) by using `compiler: true` in the plugin options instead of using the Babel plugin.

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...

// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,

// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])

```

You can also install [eslint-plugin-react-x](https://npmx.dev/package/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://npmx.dev/package/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])

```
22 changes: 22 additions & 0 deletions PTG/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
globals: globals.browser,
},
},
])
13 changes: 13 additions & 0 deletions PTG/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PTG</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading