Skip to content

Commit

Permalink
feat: improve data load
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Sep 17, 2023
1 parent 99e7116 commit 0e08c72
Show file tree
Hide file tree
Showing 11 changed files with 441 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/app/components/molecules/EnrollmentModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function enrollCourse() {
}
const redirectUri = computed(() => {
return `${config.public.appUrl}/discord/role/${course.discordRole}`;
return `${config.public.appUrl}discord/role/${course.discordRole}`;
});
function openDiscordOAuth() {
Expand Down
3 changes: 2 additions & 1 deletion apps/app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ export default defineNuxtConfig({
},
},
image: {
provider: "ipxStatic",
domains: ["raw.githubusercontent.com"],
ipx: {
ipxStatic: {
baseURL:
process.env.NODE_ENV === "development" ? "/_ipx/" : `${baseURL}_ipx/`,
},
Expand Down
2 changes: 1 addition & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/vue-fontawesome": "^3.0.3",
"@nuxt/image-edge": "1.0.0-rc.1-28180077.d51e794",
"@nuxt/image-edge": "1.0.0-rc.2-28246613.7d120ca",
"@pinia/nuxt": "^0.4.11",
"@vueuse/nuxt": "^10.3.0",
"eslint-config-custom": "workspace:*",
Expand Down
4 changes: 4 additions & 0 deletions apps/app/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ function openSubmission() {
onMounted(async () => {
try {
if (coursesStore.course?.ContentId === params.slug[0]) {
return;
}
await coursesStore.getCourse(params.slug[0]);
if (coursesStore.isEnrolled) {
Expand Down
6 changes: 1 addition & 5 deletions apps/app/pages/discord/role/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ const route = useRoute();
const error = ref(false);
const discordStore = useDiscordStore();
const redirectUri = computed(() => {
return `${config.public.appUrl}/discord/role/${route.params.id}`;
});
async function assignDiscordRole() {
try {
await discordStore.requestRole({
roleId: String(route.params.id),
code: String(route.query.code),
redirectUri: redirectUri.value,
redirectUri: `${config.public.appUrl}discord/role/${route.params.id}`,
});
window.close();
} catch (e) {
Expand Down
Binary file modified apps/app/public/app/achievements/bow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/app/public/app/achievements/hammer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/app/public/app/achievements/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/app/public/app/achievements/shield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/app/public/app/achievements/sword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0e08c72

Please sign in to comment.