Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change api to client #236

Merged
merged 2 commits into from
Sep 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,43 +20,44 @@
"check": "vue-tsc && pnpm run lint && pnpm run prettier && pnpm run stylelint"
},
"dependencies": {
"@profcomff/api-uilib": "2024.7.2-5.2",
"axios": "^1.7.2",
"@profcomff/api-uilib": "2024.9.29",
"markdown-it": "^14.1.0",
"pinia": "^2.1.7",
"openapi-fetch": "^0.12.2",
"pinia": "^2.2.2",
"query-string": "^9.1.0",
"ua-parser-js": "^1.0.38",
"vue": "^3.4.34",
"vue-router": "^4.4.0",
"ua-parser-js": "^1.0.39",
"vue": "^3.5.10",
"vue-router": "^4.4.5",
"workbox-window": "^7.1.0"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/node": "^20.14.12",
"@types/node": "^20.16.10",
"@types/ua-parser-js": "^0.7.39",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-vue": "^5.1.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/eslint-config-typescript": "^12.0.0",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-vue": "^9.27.0",
"postcss": "^8.4.40",
"eslint-plugin-vue": "^9.28.0",
"openapi-typescript": "^7.4.1",
"postcss": "^8.4.47",
"postcss-html": "^1.7.0",
"postcss-preset-env": "^9.6.0",
"prettier": "^3.3.3",
"stylelint": "^16.7.0",
"stylelint": "^16.9.0",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.1",
"typescript": "5.3.3",
"vite": "^5.3.5",
"vite": "^5.4.8",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-pwa": "^0.19.8",
"vite-plugin-stylelint": "^5.3.1",
"vite-plugin-vuetify": "^2.0.3",
"vite-plugin-vuetify": "^2.0.4",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.29",
"vuetify": "^3.6.13"
"vue-tsc": "^2.1.6",
"vuetify": "^3.7.2"
}
}
2,918 changes: 1,539 additions & 1,379 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { onMounted } from 'vue';
import { marketingApi } from './api/marketing';
import { useProfileStore } from './store/profile';
import { useTimetableStore } from './store/timetable';
import { navbarItems } from './constants/navbarItems';
Expand All @@ -9,6 +8,7 @@ import IrdomToastList from './components/IrdomToastList.vue';
import { useToolbar } from './store/toolbar';
import IrdomToolbar from './components/IrdomToolbar.vue';
import CalendarDropdown from './views/timetable/CalendarDropdown.vue';
import apiClient from '@/api/';

const profileStore = useProfileStore();
const toolbar = useToolbar();
Expand All @@ -22,9 +22,11 @@ onMounted(async () => {
updateTokenScopes();
await updateMarketingId();
if (profileStore.marketingId) {
marketingApi.writeAction({
action: 'app loaded',
user_id: profileStore.marketingId,
apiClient.POST('/marketing/v1/action', {
body: {
action: 'app loaded',
user_id: profileStore.marketingId,
},
});
}
});
Expand Down
78 changes: 0 additions & 78 deletions src/api/BaseApi.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/api/EntityBaseApi.ts

This file was deleted.

74 changes: 0 additions & 74 deletions src/api/achievement/AchievementApi.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/api/achievement/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/api/auth/AuthBaseApi.ts

This file was deleted.

93 changes: 0 additions & 93 deletions src/api/auth/AuthEmailApi.ts

This file was deleted.

Loading
Loading