Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Prise en charge des ENT basés sur le CMS Skolengo (#1) (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
maelgangloff authored Apr 6, 2023
1 parent f2d7c14 commit 02cb3cb
Show file tree
Hide file tree
Showing 32 changed files with 1,325 additions and 501 deletions.
74 changes: 68 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"fast-average-color": "^9.3.0",
"install": "^0.13.0",
"ionicons": "^6.0.3",
"kdecole-api": "^1.4.3",
"lucide-vue-next": "^0.104.0",
"moment": "^2.29.4",
"npm": "^9.6.2",
Expand Down
Binary file added public/assets/welcome/skolengo/PROD_AGORA06.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 added public/assets/welcome/skolengo/PROD_ARSENE76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/welcome/skolengo/PROD_ECLAT_BFC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/welcome/skolengo/PROD_ENT27.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 added public/assets/welcome/skolengo/PROD_ENTCREUSE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/welcome/skolengo/PROD_SKOLENGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/welcome/skolengo_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 45 additions & 19 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import { defineComponent, ref } from 'vue';
import { useRoute } from 'vue-router';
const { changelog } = require('/src/update')
const { changelog } = require('/src/update')
import { globeOutline } from 'ionicons/icons';
import { AndroidShortcuts } from 'capacitor-android-shortcuts';
Expand Down Expand Up @@ -49,14 +49,14 @@
export default defineComponent({
name: 'App',
components: {
IonApp,
IonContent,
IonItem,
IonLabel,
IonList,
IonMenu,
IonApp,
IonContent,
IonItem,
IonLabel,
IonList,
IonMenu,
IonMenuToggle,
IonRouterOutlet,
IonRouterOutlet,
IonSplitPane,
IonHeader,
IonToolbar,
Expand Down Expand Up @@ -104,6 +104,32 @@
disabled: false
}
];
if(localStorage.getItem("loginService") === "skolengo") {
appPages.push({
title: 'Emploi du temps',
url: '/timetable',
icon: "calendar_month",
disabled: false,
},
{
title: 'Travail à faire',
url: '/homework',
icon: "auto_stories",
disabled: false,
},
{
title: 'Actualités',
url: '/news',
icon: "newspaper",
disabled: false,
},
{
title: 'Paramètres',
url: '/settings',
icon: "settings",
disabled: false
})
}
if(localStorage.getItem("loginService") === "pronote") {
appPages.push({
title: 'Emploi du temps',
Expand Down Expand Up @@ -147,7 +173,7 @@
icon: "settings",
disabled: false
})
}
}
// hides some tabs when they are not anabled
if(localStorage.getItem('viescolaireEnabled') !== 'true') {
// remove school life tab
Expand Down Expand Up @@ -242,10 +268,10 @@
if (path !== undefined) {
selectedIndex.value = appPages.findIndex(page => page.title.toLowerCase() === path.toLowerCase());
}
const route = useRoute();
return {
return {
selectedIndex,
appCanal: canal,
appVersion: version,
Expand Down Expand Up @@ -361,7 +387,7 @@
async configureBackgroundFetch() {
await BackgroundFetch.configure({minimumFetchInterval: 15}, async (taskId: any) => {
console.log('[js] BackgroundFetch event received: ', taskId);
try {
this.backgroundFetchEvent(taskId);
} catch (e) {
Expand Down Expand Up @@ -435,7 +461,7 @@
}, 100);
if(url == "/home") {
if(localStorage.getItem('fillToolbar') == 'true') {
if(localStorage.getItem('fillToolbar') == 'true') {
StatusBar.setStyle({style: Style.Dark})
this.changeStatusTimeout = false;
Expand Down Expand Up @@ -464,12 +490,12 @@
.addElement(opts.enteringEl)
.fromTo('opacity', 0, 1)
.duration(100);
const leavingAnimation = createAnimation()
.addElement(opts.leavingEl)
.fromTo('opacity', 1, 0)
.duration(100);
const animation = createAnimation()
.addAnimation(enteringAnimation)
.addAnimation(leavingAnimation);
Expand Down Expand Up @@ -651,7 +677,7 @@
document.body.style.setProperty('--ion-color-primary-rgb', customizations.color.color.rgb);
}
}
// check current version in local storage
if(localStorage.getItem('version')) {
if(localStorage.getItem('version') !== this.appVersion) {
Expand Down Expand Up @@ -710,7 +736,7 @@
</div>
</ion-header>
<ion-content mode="md">
<ion-list id="inbox-list">
<ion-list id="inbox-list">
<router-link @click="changePage(p.url)" class="navLink" :to="`${p.url}`" v-for="(p, i) in appPages" :key="i">
<ion-item v-if="!p.disabled" button mode="md" lines="none" :detail="false" @click="selectedIndex = i" :class="{ selected: selectedIndex === i }">
<span class="material-symbols-outlined mdls" slot="start">{{ p.icon }}</span>
Expand All @@ -723,7 +749,7 @@
</router-link>
</ion-list>

<ion-list id="bottomActionsList">
<ion-list id="bottomActionsList">
<ion-item @click="openURL('https://docs.getpapillon.xyz')" button mode="md" lines="none" :detail="false">
<span class="material-symbols-outlined mdls" slot="start">support</span>
<ion-label>Aide de Papillon</ion-label>
Expand Down
Loading

0 comments on commit 02cb3cb

Please sign in to comment.