Skip to content

Commit

Permalink
Merge branch 'main' into feature/canteen-turboself
Browse files Browse the repository at this point in the history
  • Loading branch information
raphckrman authored Nov 3, 2024
2 parents f1c6e2f + 1f8a121 commit 612b058
Show file tree
Hide file tree
Showing 205 changed files with 5,212 additions and 2,673 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Checks
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]

jobs:
eslint:
name: Typescript build & ESlint scanning
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Pnpm setup
uses: pnpm/action-setup@v2
with:
version: latest

- name: Environnement setup
run: pnpm install

- name: Typescript and Eslint scanning
run: pnpm lint
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,4 @@ yarn-error.*
.expo
dist/
web-build/
android/app/release/

AppIcon.appiconset/*
AppIcon.appiconset.backup/*
android/app/release/
38 changes: 38 additions & 0 deletions AppIcon.appiconset.backup/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"images" : [
{
"filename" : "Icon-Light-1024x1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "Icon-Dark-1024x1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"filename" : "Icon-Tinted-1024x1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

> **Papillon est une application mobile qui vise à simplifier la vie scolaire des étudiants en France.**
Voici un aperçu de ce que nous avons accompli jusqu'à présent et de ce qui reste à faire :
Voici un aperçu de ce que nous avons accompli jusqu'à présent et de ce qu'il reste à faire :

- 🏗️ Structure
- 🗺️ Routage & Navigation (React Navigation)
Expand All @@ -21,8 +21,16 @@ Voici un aperçu de ce que nous avons accompli jusqu'à présent et de ce qui re
- 🎓 Connexion à un service scolaire
- 🏫 Interface de choix du service scolaire
- [x] 🟢 Pronote
- [ ] 🔵 EcoleDirecte
- [ ] 🟡 Skolengo
- [x] 🔵 EcoleDirecte
- [x] 🟡 Skolengo
- [x] 🏫 Universités
- Limoges
- Lorraine
- Nîmes
- Polytechnique Hauts-de-France (UPHF)
- Rennes 1
- Rennes 2
- Sorbonne Paris Nord
- 🏠 Interface de sélection de l'établissement
- **Pour PRONOTE**
- URL de l'établissement
Expand All @@ -46,11 +54,11 @@ Voici un aperçu de ce que nous avons accompli jusqu'à présent et de ce qui re
- 📰 Actualités
- 💬 Conversations
- 🎒 Vie scolaire
- 📩 Messagerie

#

![A propos du projet](https://raw.githubusercontent.com/PapillonApp/Papillon/main/.github/assets/part_dev_light.svg#gh-light-mode-only)
![A propos du projet](https://raw.githubusercontent.com/PapillonApp/Papillon/main/.github/assets/part_dev_dark.svg#gh-dark-mode-only)

Pour commencer à développer sur Papillon v7, référez vous au [centre de documentation pour développeurs](https://developers.papillon.bzh/getting-started/quick-start).

2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "7.2.1"
versionName "7.3.0"
}
signingConfigs {
debug {
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Papillon",
"slug": "papillonvex",
"scheme": "papillon",
"version": "7.2.1",
"version": "7.3.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "automatic",
Expand Down
Binary file added assets/icon/community_beach.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 assets/icon/community_butter.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 assets/icon/community_gradient.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 assets/icon/community_gtavi.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 assets/icon/community_ios18.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 assets/icon/community_moon.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 assets/icon/community_newpride.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 assets/icon/community_retroblue.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 assets/icon/community_retroyellow.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 assets/icon/community_shapes.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 assets/icon/community_slash.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 assets/icon/community_sun.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 assets/icon/community_v7.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 assets/images/service_ulorraine.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 assets/images/service_unimes.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 assets/images/service_uphf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = function (api) {
presets: ["babel-preset-expo"],
plugins: [
"@babel/plugin-transform-class-static-block",
"react-native-reanimated/plugin"
],
};
};
};
14 changes: 14 additions & 0 deletions ios/Papillon/FilePreviewManager.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// FilePreviewManager.h
// Papillon
//
// Created by imyanice on 02/10/2024.
//


#import <React/RCTBridgeModule.h>
#import <QuickLook/QuickLook.h>

@interface FilePreviewManager : NSObject <RCTBridgeModule, QLPreviewControllerDataSource>

@end
54 changes: 54 additions & 0 deletions ios/Papillon/FilePreviewManager.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
//
// FilePreviewManager.m
// Papillon
//
// Created by imyanice on 02/10/2024.
//

#import <React/RCTBridgeModule.h>
#import <QuickLook/QuickLook.h>

@interface FilePreviewManager : NSObject <RCTBridgeModule, QLPreviewControllerDataSource>
@property (nonatomic, strong) NSURL *fileURL;
@end

@implementation FilePreviewManager

RCT_EXPORT_MODULE();

RCT_EXPORT_METHOD(openFile:(NSString *)filePath)
{

if ([filePath hasPrefix:@"file://"]) {
filePath = [filePath stringByReplacingOccurrencesOfString:@"file://" withString:@""];
}
self.fileURL = [NSURL fileURLWithPath:filePath];
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath] ) {
dispatch_async(dispatch_get_main_queue(), ^{
QLPreviewController *previewController = [[QLPreviewController alloc] init];
previewController.dataSource = self;

UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
if (rootViewController.presentedViewController) {
[rootViewController.presentedViewController dismissViewControllerAnimated:YES completion:^{
[rootViewController presentViewController:previewController animated:YES completion:nil];
}];
} else {
[rootViewController presentViewController:previewController animated:YES completion:nil];
}
});
} else {
NSLog(@"File doesn't exist at path: %@", filePath);
}

}

- (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)controller {
return 1;
}

- (id<QLPreviewItem>)previewController:(QLPreviewController *)controller previewItemAtIndex:(NSInteger)index {
return self.fileURL;
}

@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_beach.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_butter.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_gtavi.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_gradient.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_moon.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_retroblue.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_retroyellow.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_shapes.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_slash.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_sun.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_v7.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"images" : [
{
"filename" : "community_ios18.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading

0 comments on commit 612b058

Please sign in to comment.