Skip to content

Commit 61f89c6

Browse files
authored
Merge pull request #119 from filips123/update-dependencies
Update dependencies
2 parents 82d41b8 + 2775f4d commit 61f89c6

File tree

13 files changed

+2778
-1865
lines changed

13 files changed

+2778
-1865
lines changed

.github/workflows/api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Install Python
4242
uses: actions/setup-python@v5
4343
with:
44-
python-version: "3.12"
44+
python-version: "3.13"
4545

4646
- name: Install Poetry
4747
run: |
@@ -83,7 +83,7 @@ jobs:
8383
- name: Install Python
8484
uses: actions/setup-python@v5
8585
with:
86-
python-version: "3.12"
86+
python-version: "3.13"
8787

8888
- name: Install Poetry
8989
run: |

.github/workflows/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Install Python
4949
uses: actions/setup-python@v5
5050
with:
51-
python-version: "3.12"
51+
python-version: "3.13"
5252

5353
- name: Install Poetry
5454
run: |

API/gimvicurnik/utils/sentry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
SP = ParamSpec("SP")
1515
SR = TypeVar("SR")
1616

17-
__all__ = ["start_transaction", "start_span", "with_transaction", "with_span", "sentry_available"]
17+
__all__ = ["sentry_available", "start_span", "start_transaction", "with_span", "with_transaction"]
1818

1919

2020
class WithMock(Mock):

API/poetry.lock

Lines changed: 300 additions & 284 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

API/pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,29 +39,29 @@ gimvicurnik = "gimvicurnik.__main__:main"
3939
[tool.poetry.dependencies]
4040
python = "^3.10"
4141
PyYAML = "^6.0.2"
42-
flask = "^3.0.3"
43-
click = "^8.1.7"
44-
attrs = "~24.2.0"
42+
flask = "^3.1.0"
43+
click = "^8.1.8"
44+
attrs = "~24.3.0"
4545
cattrs = "~24.1.2"
4646
requests = "^2.32.3"
4747
SQLAlchemy = "^2.0.36"
4848
pdfplumber = "^0.11.4"
4949
openpyxl = "^3.1.5"
5050
mammoth = "^1.8.0"
51-
icalendar = "^6.0.1"
51+
icalendar = "^6.1.0"
5252
beautifulsoup4 = { version = "^4.12.3", extras = ["lxml"] }
5353

5454
# Optional support for Sentry integration
55-
sentry-sdk = { version = "^2.17.0", extras = ["flask", "sqlalchemy", "pure_eval"], optional = true }
55+
sentry-sdk = { version = "^2.19.2", extras = ["flask", "sqlalchemy", "pure_eval"], optional = true }
5656

5757
# Optional support for different databases
5858
PyMySQL = { version = "^1.1.1", optional = true }
59-
mysqlclient = { version = "^2.2.5", optional = true }
59+
mysqlclient = { version = "^2.2.6", optional = true }
6060
psycopg2 = { version = "^2.9.10", optional = true }
6161

6262
[tool.poetry.group.dev.dependencies]
63-
mypy = "^1.13.0"
64-
ruff = "^0.7.2"
63+
mypy = "^1.14.0"
64+
ruff = "^0.8.4"
6565
types-pyyaml = "^6.0.12"
6666
types-openpyxl = "^3.1.5"
6767
types-requests = "^2.32.0"

website/.eslintrc.cjs

Lines changed: 0 additions & 27 deletions
This file was deleted.

website/eslint.config.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import path from 'node:path'
2+
import { fileURLToPath } from 'node:url'
3+
4+
import { includeIgnoreFile } from '@eslint/compat'
5+
import eslint from '@eslint/js'
6+
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
7+
import vueTsEslintConfig from '@vue/eslint-config-typescript'
8+
import pluginSimpleImportSort from 'eslint-plugin-simple-import-sort'
9+
import pluginVue from 'eslint-plugin-vue'
10+
11+
const __filename = fileURLToPath(import.meta.url)
12+
const __dirname = path.dirname(__filename)
13+
const gitignorePath = path.resolve(__dirname, '..', '.gitignore')
14+
15+
export default [
16+
{
17+
name: 'app/files-to-lint',
18+
files: ['**/*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}'],
19+
},
20+
21+
// Ignore files specified in .gitignore
22+
includeIgnoreFile(gitignorePath),
23+
24+
// Use recommended config as base
25+
eslint.configs.recommended,
26+
27+
// Use recommended Vue config
28+
...pluginVue.configs['flat/recommended'],
29+
30+
// Use recommended TypeScript config
31+
...vueTsEslintConfig({ extends: ['recommended'] }),
32+
33+
// Disable formatting rules as they are handled by Prettier
34+
skipFormatting,
35+
36+
{
37+
plugins: {
38+
'simple-import-sort': pluginSimpleImportSort,
39+
},
40+
rules: {
41+
'@typescript-eslint/no-explicit-any': 'off',
42+
'simple-import-sort/imports': 'error',
43+
eqeqeq: 'error',
44+
'no-cond-assign': 'error',
45+
'no-class-assign': 'error',
46+
'no-const-assign': 'error',
47+
'accessor-pairs': 'warn',
48+
},
49+
},
50+
]

website/package.json

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,47 @@
1919
"dev": "vite",
2020
"build": "vite build",
2121
"preview": "vite preview",
22-
"lint": "eslint --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path ../.gitignore .",
22+
"lint": "eslint .",
2323
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
2424
"format": "prettier src plugins ${0:- --check}"
2525
},
26-
"packageManager": "yarn@4.5.1",
26+
"packageManager": "yarn@4.6.0",
2727
"dependencies": {
2828
"@mdi/js": "^7.4.47",
29-
"@sentry/browser": "^8.36.0",
30-
"@sentry/types": "^8.36.0",
31-
"@sentry/vue": "^8.36.0",
32-
"@vueuse/core": "^11.2.0",
33-
"pinia": "^2.2.5",
34-
"pinia-plugin-persistedstate": "^4.1.2",
29+
"@sentry/browser": "^8.47.0",
30+
"@sentry/core": "^8.47.0",
31+
"@sentry/vue": "^8.47.0",
32+
"@vueuse/core": "^12.2.0",
33+
"pinia": "^2.3.0",
34+
"pinia-plugin-persistedstate": "^4.2.0",
3535
"pulltorefreshjs": "^0.1.22",
36-
"vue": "^3.5.12",
37-
"vue-router": "^4.4.5",
38-
"vuetify": "^3.7.3"
36+
"vue": "^3.5.13",
37+
"vue-router": "^4.5.0",
38+
"vuetify": "^3.7.6"
3939
},
4040
"devDependencies": {
41+
"@eslint/compat": "^1.2.4",
42+
"@eslint/js": "^9.17.0",
4143
"@rushstack/eslint-patch": "^1.10.4",
42-
"@sentry/vite-plugin": "^2.22.6",
44+
"@sentry/vite-plugin": "^2.22.7",
4345
"@tsconfig/node20": "^20.1.4",
44-
"@types/node": "^20.17.5",
46+
"@types/node": "^20.17.10",
4547
"@types/pulltorefreshjs": "^0.1.7",
46-
"@vitejs/plugin-vue": "^5.1.4",
47-
"@vue/eslint-config-prettier": "^9.0.0",
48-
"@vue/eslint-config-typescript": "^13.0.0",
49-
"@vue/tsconfig": "^0.5.1",
50-
"eslint": "^8.57.1",
48+
"@vitejs/plugin-vue": "^5.2.1",
49+
"@vue/eslint-config-prettier": "^10.1.0",
50+
"@vue/eslint-config-typescript": "^14.2.0",
51+
"@vue/tsconfig": "^0.7.0",
52+
"eslint": "^9.17.0",
5153
"eslint-plugin-import": "^2.31.0",
5254
"eslint-plugin-simple-import-sort": "^12.1.1",
53-
"eslint-plugin-vue": "^9.30.0",
54-
"prettier": "^3.3.3",
55-
"typescript": "~5.5.4",
56-
"vite": "^5.4.10",
55+
"eslint-plugin-vue": "^9.32.0",
56+
"prettier": "^3.4.2",
57+
"typescript": "~5.7.2",
58+
"vite": "^6.0.6",
5759
"vite-plugin-html": "^3.2.2",
58-
"vite-plugin-pwa": "^0.20.5",
60+
"vite-plugin-pwa": "^0.21.1",
61+
"vite-plugin-vue-devtools": "^7.6.8",
5962
"vite-plugin-vuetify": "^2.0.4",
60-
"vue-tsc": "^2.1.10"
63+
"vue-tsc": "^2.2.0"
6164
}
6265
}

website/src/registerSentry.ts

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ import {
1010
setHttpStatus,
1111
startBrowserTracingNavigationSpan,
1212
} from '@sentry/browser'
13-
import type { Integration, Span, SpanAttributes, TransactionSource } from '@sentry/types'
13+
import type { Integration, Span, SpanAttributes, TransactionSource } from '@sentry/core'
1414
import {
1515
browserProfilingIntegration,
16+
browserSessionIntegration,
1617
extraErrorDataIntegration,
1718
httpClientIntegration,
19+
httpContextIntegration,
1820
init as sentryInit,
1921
reportingObserverIntegration,
2022
thirdPartyErrorFilterIntegration,
23+
vueIntegration,
2124
} from '@sentry/vue'
2225
import type { App } from 'vue'
2326
import type { Router } from 'vue-router'
@@ -38,23 +41,6 @@ export default function registerSentry(app: App, router: Router) {
3841
const tracesSampleRate = import.meta.env.VITE_SENTRY_TRACES_SAMPLE_RATE
3942
const profilesSampleRate = import.meta.env.VITE_SENTRY_PROFILES_SAMPLE_RATE
4043

41-
// Include additional always-enabled integrations
42-
const integrations = [
43-
extraErrorDataIntegration({ depth: 8 }),
44-
reportingObserverIntegration(),
45-
httpClientIntegration(),
46-
thirdPartyErrorFilterIntegration({
47-
filterKeys: [import.meta.env.VITE_SENTRY_APPLICATION_KEY],
48-
behaviour: 'apply-tag-if-contains-third-party-frames',
49-
}),
50-
]
51-
52-
// Add performance integrations if enabled in settings
53-
if (dataCollectionPerformance) {
54-
if (tracesSampleRate) integrations.push(browserTracingIntegration(router))
55-
if (profilesSampleRate) integrations.push(browserProfilingIntegration())
56-
}
57-
5844
// Track only base components for performance
5945
const trackedComponents = [
6046
'VApp',
@@ -74,6 +60,30 @@ export default function registerSentry(app: App, router: Router) {
7460
'NotFound',
7561
]
7662

63+
// Include additional always-enabled integrations
64+
const integrations = [
65+
extraErrorDataIntegration({ depth: 8 }),
66+
reportingObserverIntegration(),
67+
httpClientIntegration(),
68+
httpContextIntegration(),
69+
thirdPartyErrorFilterIntegration({
70+
filterKeys: [import.meta.env.VITE_SENTRY_APPLICATION_KEY],
71+
behaviour: 'apply-tag-if-contains-third-party-frames',
72+
}),
73+
vueIntegration({
74+
tracingOptions: {
75+
trackComponents: dataCollectionPerformance ? trackedComponents : false,
76+
},
77+
}),
78+
]
79+
80+
// Add performance integrations if enabled in settings
81+
if (dataCollectionPerformance) {
82+
integrations.push(browserSessionIntegration())
83+
if (tracesSampleRate) integrations.push(browserTracingIntegration(router))
84+
if (profilesSampleRate) integrations.push(browserProfilingIntegration())
85+
}
86+
7787
// Init the Sentry SDK
7888
sentryInit({
7989
app,
@@ -88,9 +98,6 @@ export default function registerSentry(app: App, router: Router) {
8898
environment: import.meta.env.MODE,
8999
release: releasePrefix + import.meta.env.VITE_VERSION + releaseSuffix,
90100

91-
autoSessionTracking: dataCollectionPerformance,
92-
trackComponents: dataCollectionPerformance ? trackedComponents : false,
93-
94101
integrations,
95102
})
96103

website/src/utils/colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export enum AccentColorName {
1313
Black = 'black',
1414
}
1515

16-
export type AccentColor = {
16+
export interface AccentColor {
1717
/**
1818
* The name of the accent color.
1919
*/

0 commit comments

Comments
 (0)