Skip to content

Commit

Permalink
verkefni 1, útgáfa 1
Browse files Browse the repository at this point in the history
  • Loading branch information
osk committed Jan 14, 2024
0 parents commit 25c1ba3
Show file tree
Hide file tree
Showing 28 changed files with 15,188 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
single_quote = true

[*.md]
trim_trailing_whitespace = false
34 changes: 34 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['airbnb-base', 'prettier'],
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
rules: {
'no-restricted-syntax': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'no-param-reassign': 0,
quotes: ['error', 'single'],
'no-console': [
'warn',
{
allow: ['warn', 'error', 'info', 'group', 'groupCollapsed', 'groupEnd'],
},
],
'import/extensions': 0,
'max-len': [
'warn',
{
code: 100,
ignoreUrls: true,
ignoreComments: true,
ignoreTemplateLiterals: true,
},
],
},
};
28 changes: 28 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lint-test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Lint
run: yarn lint

- name: Test
# Run this even if linting failed
if: always()
run: yarn test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
coverage
dist
.DS_Store
*.log
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["stylelint-config-standard"]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
}
}
65 changes: 65 additions & 0 deletions data/gameday-1230.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"date": "2024-02-02T15:20:53.955Z",
"games": [
{
"home": {
"name": "Ósigrandi skotfólkið",
"score": 0
},
"away": {
"name": "Hraðaliðið",
"score": 5
}
},
{
"home": {
"name": "Óhemjurnar",
"score": 0
},
"away": {
"name": "Fljótu fæturnir",
"score": 3
}
},
{
"home": {
"name": "Sigurliðið",
"score": 0
},
"away": {
"name": "Vinningshópurinn",
"score": 3
}
},
{
"home": {
"name": "Framherjarnir",
"score": 5
},
"away": {
"name": "Dripplararnir",
"score": 2
}
},
{
"home": {
"name": "Boltaliðið",
"score": 3
},
"away": {
"name": "Skotföstu kempurnar",
"score": 3
}
},
{
"home": {
"name": "Markaskorarnir",
"score": 5
},
"away": {
"name": "Risaeðlurnar",
"score": 4
}
}
]
}
65 changes: 65 additions & 0 deletions data/gameday-3iks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"date": "2024-01-22T15:20:53.955Z",
"games": [
{
"home": {
"name": "Skotföstu kempurnar",
"score": 5
},
"away": {
"name": "Hraðaliðið",
"score": 4
}
},
{
"home": {
"name": "Fljótu fæturnir",
"score": 1
},
"away": {
"name": "Framherjarnir",
"score": 0
}
},
{
"home": {
"name": "Markaskorarnir",
"score": 2
},
"away": {
"name": "Ósigrandi skotfólkið",
"score": 5
}
},
{
"home": {
"name": "Boltaliðið",
"score": 5
},
"away": {
"name": "Risaeðlurnar",
"score": 1
}
},
{
"home": {
"name": "Dripplararnir",
"score": 5
},
"away": {
"name": "Sigurliðið",
"score": 3
}
},
{
"home": {
"name": "Vinningshópurinn",
"score": 3
},
"away": {
"name": "Óhemjurnar",
"score": 2
}
}
]
}
65 changes: 65 additions & 0 deletions data/gameday-4828.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"date": "2024-01-15T15:20:53.955Z",
"games": [
{
"home": {
"name": "Ósigrandi skotfólkið",
"score": 0
},
"away": {
"name": "Framherjarnir",
"score": 1
}
},
{
"home": {
"name": "Fljótu fæturnir",
"score": 3
},
"away": {
"name": "Dripplararnir",
"score": 5
}
},
{
"home": {
"name": "Boltaliðið",
"score": 0
},
"away": {
"name": "Markaskorarnir",
"score": 3
}
},
{
"home": {
"name": "Sigurliðið",
"score": 3
},
"away": {
"name": "Skotföstu kempurnar",
"score": 0
}
},
{
"home": {
"name": "Risaeðlurnar",
"score": 4
},
"away": {
"name": "Óhemjurnar",
"score": 4
}
},
{
"home": {
"name": "Vinningshópurinn",
"score": 4
},
"away": {
"name": "Hraðaliðið",
"score": 1
}
}
]
}
65 changes: 65 additions & 0 deletions data/gameday-8k38.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"date": "2024-02-16T15:20:53.955Z",
"games": [
{
"home": {
"name": "Sigurliðið",
"score": 2
},
"away": {
"name": "Framherjarnir",
"score": 3
}
},
{
"home": {
"name": "Vinningshópurinn",
"score": 5
},
"away": {
"name": "Risaeðlurnar",
"score": 1
}
},
{
"home": {
"name": "Boltaliðið",
"score": 5
},
"away": {
"name": "Dripplararnir",
"score": 2
}
},
{
"home": {
"name": "Fljótu fæturnir",
"score": 3
},
"away": {
"name": "Hraðaliðið",
"score": 3
}
},
{
"home": {
"name": "Skotföstu kempurnar",
"score": 1
},
"away": {
"name": "Ósigrandi skotfólkið",
"score": 5
}
},
{
"home": {
"name": "Óhemjurnar",
"score": 2
},
"away": {
"name": "Markaskorarnir",
"score": 0
}
}
]
}
Loading

0 comments on commit 25c1ba3

Please sign in to comment.