forked from vergnet/application-amicale
Updated links to new server and changed proximo main screen sort order
This commit is contained in:
parent
878ff1b308
commit
3f7f9551aa
13 changed files with 35 additions and 21 deletions
|
@ -13,7 +13,7 @@ Ce dépot contient les source de cette application, modifiable par les étudiant
|
||||||
|
|
||||||
Si vous voulez influencer le développement ? C'est très simple !
|
Si vous voulez influencer le développement ? C'est très simple !
|
||||||
|
|
||||||
Pas besoin de connaissance, il est possible d'aider simplement en proposant des améliorations ou en rapportant des bugs par mail (vergnet@etud.insa-toulouse.fr) ou sur [cette page](https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/issues), en vous connectant avec vos login INSA.
|
Pas besoin de connaissance, il est possible d'aider simplement en proposant des améliorations ou en rapportant des bugs par mail (vergnet@etud.insa-toulouse.fr) ou sur [cette page](https://git.etud.insa-toulouse.fr/vergnet/application-amicale/issues), en vous connectant avec vos login INSA.
|
||||||
|
|
||||||
Si vous avez assez de connaissances et vous souhaitez proposer des modification dans le code, installez l'application sur votre machine, réalisez votre modification et créez une 'pull request'.
|
Si vous avez assez de connaissances et vous souhaitez proposer des modification dans le code, installez l'application sur votre machine, réalisez votre modification et créez une 'pull request'.
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ import ThemeManager from "../../utils/ThemeManager";
|
||||||
const links = {
|
const links = {
|
||||||
appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148',
|
appstore: 'https://apps.apple.com/us/app/campus-amicale-insat/id1477722148',
|
||||||
playstore: 'https://play.google.com/store/apps/details?id=fr.amicaleinsat.application',
|
playstore: 'https://play.google.com/store/apps/details?id=fr.amicaleinsat.application',
|
||||||
git: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/README.md',
|
git: 'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/README.md',
|
||||||
bugsMail: 'mailto:vergnet@etud.insa-toulouse.fr?' +
|
bugsMail: 'mailto:vergnet@etud.insa-toulouse.fr?' +
|
||||||
'subject=' +
|
'subject=' +
|
||||||
'[BUG] Application Amicale INSA Toulouse' +
|
'[BUG] Application Amicale INSA Toulouse' +
|
||||||
|
@ -25,9 +25,9 @@ const links = {
|
||||||
'Nature du problème :\n\n\n' +
|
'Nature du problème :\n\n\n' +
|
||||||
'Étapes pour reproduire ce pb :\n\n\n\n' +
|
'Étapes pour reproduire ce pb :\n\n\n\n' +
|
||||||
'Stp corrige le pb, bien cordialement.',
|
'Stp corrige le pb, bien cordialement.',
|
||||||
bugsGit: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/issues',
|
bugsGit: 'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/issues',
|
||||||
changelog: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/Changelog.md',
|
changelog: 'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/Changelog.md',
|
||||||
license: 'https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/LICENSE',
|
license: 'https://git.etud.insa-toulouse.fr/vergnet/application-amicale/src/branch/master/LICENSE',
|
||||||
authorMail: "mailto:vergnet@etud.insa-toulouse.fr?" +
|
authorMail: "mailto:vergnet@etud.insa-toulouse.fr?" +
|
||||||
"subject=" +
|
"subject=" +
|
||||||
"Application Amicale INSA Toulouse" +
|
"Application Amicale INSA Toulouse" +
|
||||||
|
|
|
@ -14,7 +14,7 @@ import DashboardItem from "../components/DashboardItem";
|
||||||
|
|
||||||
const ICON_AMICALE = require('../assets/amicale.png');
|
const ICON_AMICALE = require('../assets/amicale.png');
|
||||||
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
||||||
const DATA_URL = "https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/dashboard/dashboard_data.json";
|
const DATA_URL = "https://etud.insa-toulouse.fr/~amicale_app/dashboard/dashboard_data.json";
|
||||||
|
|
||||||
const SECTIONS_ID = [
|
const SECTIONS_ID = [
|
||||||
'dashboard',
|
'dashboard',
|
||||||
|
|
|
@ -9,7 +9,7 @@ import FetchedDataSectionList from "../../components/FetchedDataSectionList";
|
||||||
import ThemeManager from "../../utils/ThemeManager";
|
import ThemeManager from "../../utils/ThemeManager";
|
||||||
import Touchable from "react-native-platform-touchable";
|
import Touchable from "react-native-platform-touchable";
|
||||||
|
|
||||||
const DATA_URL = "https://srv-falcon.etud.insa-toulouse.fr/~proximo/data/stock-v2.json";
|
const DATA_URL = "https://etud.insa-toulouse.fr/~proximo/data/stock-v2.json";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,7 +23,21 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
||||||
}
|
}
|
||||||
|
|
||||||
static sortFinalData(a: Object, b: Object) {
|
static sortFinalData(a: Object, b: Object) {
|
||||||
return a.type.id - b.type.id;
|
let str1 = a.type.name.toLowerCase();
|
||||||
|
let str2 = b.type.name.toLowerCase();
|
||||||
|
|
||||||
|
// Make 'All' category with id -1 stick to the top
|
||||||
|
if (a.type.id === -1)
|
||||||
|
return -1;
|
||||||
|
if (b.type.id === -1)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
// Sort others by name ascending
|
||||||
|
if (str1 < str2)
|
||||||
|
return -1;
|
||||||
|
if (str1 > str2)
|
||||||
|
return 1;
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
getHeaderTranslation() {
|
getHeaderTranslation() {
|
||||||
|
@ -63,7 +77,7 @@ export default class ProximoMainScreen extends FetchedDataSectionList {
|
||||||
let articles = fetchedData.articles;
|
let articles = fetchedData.articles;
|
||||||
finalData.push({
|
finalData.push({
|
||||||
type: {
|
type: {
|
||||||
id: "0",
|
id: -1,
|
||||||
name: i18n.t('proximoScreen.all'),
|
name: i18n.t('proximoScreen.all'),
|
||||||
icon: 'star'
|
icon: 'star'
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@ import Touchable from "react-native-platform-touchable";
|
||||||
import AsyncStorageManager from "../../utils/AsyncStorageManager";
|
import AsyncStorageManager from "../../utils/AsyncStorageManager";
|
||||||
import * as Expo from "expo";
|
import * as Expo from "expo";
|
||||||
|
|
||||||
const DATA_URL = "https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/washinsa/washinsa.json";
|
const DATA_URL = "https://etud.insa-toulouse.fr/~amicale_app/washinsa/washinsa.json";
|
||||||
|
|
||||||
const MACHINE_STATES = {
|
const MACHINE_STATES = {
|
||||||
"TERMINE": "0",
|
"TERMINE": "0",
|
||||||
|
|
|
@ -7,7 +7,7 @@ import ThemeManager from "../utils/ThemeManager";
|
||||||
import i18n from "i18n-js";
|
import i18n from "i18n-js";
|
||||||
import FetchedDataSectionList from "../components/FetchedDataSectionList";
|
import FetchedDataSectionList from "../components/FetchedDataSectionList";
|
||||||
|
|
||||||
const DATA_URL = "https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/menu/menu_data.json";
|
const DATA_URL = "https://etud.insa-toulouse.fr/~amicale_app/menu/menu_data.json";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's menu screen.
|
* Class defining the app's menu screen.
|
||||||
|
|
|
@ -12,8 +12,8 @@ type Props = {
|
||||||
const ROOM_URL = 'http://planex.insa-toulouse.fr/salles.php';
|
const ROOM_URL = 'http://planex.insa-toulouse.fr/salles.php';
|
||||||
const PC_URL = 'http://planex.insa-toulouse.fr/sallesInfo.php';
|
const PC_URL = 'http://planex.insa-toulouse.fr/sallesInfo.php';
|
||||||
const BIB_URL = 'https://bibbox.insa-toulouse.fr/';
|
const BIB_URL = 'https://bibbox.insa-toulouse.fr/';
|
||||||
const CUSTOM_CSS_GENERAL = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/rooms/customMobile.css';
|
const CUSTOM_CSS_GENERAL = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/rooms/customMobile.css';
|
||||||
const CUSTOM_CSS_Bib = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/rooms/customBibMobile.css';
|
const CUSTOM_CSS_Bib = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/rooms/customBibMobile.css';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's planex screen.
|
* Class defining the app's planex screen.
|
||||||
|
|
|
@ -11,7 +11,7 @@ type Props = {
|
||||||
|
|
||||||
const URL = 'https://etud-mel.insa-toulouse.fr/webmail/';
|
const URL = 'https://etud-mel.insa-toulouse.fr/webmail/';
|
||||||
|
|
||||||
const CUSTOM_CSS_GENERAL = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/bluemind/customMobile.css';
|
const CUSTOM_CSS_GENERAL = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/bluemind/customMobile.css';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@ type Props = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const URL = 'https://srv-falcon.etud.insa-toulouse.fr/~eeinsat/';
|
const URL = 'https://etud.insa-toulouse.fr/~eeinsat/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's planex screen.
|
* Class defining the app's planex screen.
|
||||||
|
|
|
@ -11,12 +11,12 @@ type Props = {
|
||||||
|
|
||||||
const URL = 'https://ent.insa-toulouse.fr/';
|
const URL = 'https://ent.insa-toulouse.fr/';
|
||||||
|
|
||||||
const CUSTOM_CSS_GENERAL = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/ent/customMobile.css';
|
const CUSTOM_CSS_GENERAL = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/ent/customMobile.css';
|
||||||
|
|
||||||
// let stylesheet = document.createElement('link');
|
// let stylesheet = document.createElement('link');
|
||||||
// stylesheet.type = 'text/css';
|
// stylesheet.type = 'text/css';
|
||||||
// stylesheet.rel = 'stylesheet';
|
// stylesheet.rel = 'stylesheet';
|
||||||
// stylesheet.href = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/ent/customMobile.css';
|
// stylesheet.href = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/ent/customMobile.css';
|
||||||
// let mobileSpec = document.createElement('meta');
|
// let mobileSpec = document.createElement('meta');
|
||||||
// mobileSpec.name = 'viewport';
|
// mobileSpec.name = 'viewport';
|
||||||
// mobileSpec.content = 'width=device-width, initial-scale=1.0';
|
// mobileSpec.content = 'width=device-width, initial-scale=1.0';
|
||||||
|
|
|
@ -11,8 +11,8 @@ type Props = {
|
||||||
|
|
||||||
const PLANEX_URL = 'http://planex.insa-toulouse.fr/';
|
const PLANEX_URL = 'http://planex.insa-toulouse.fr/';
|
||||||
|
|
||||||
const CUSTOM_CSS_GENERAL = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customMobile3.css';
|
const CUSTOM_CSS_GENERAL = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customMobile3.css';
|
||||||
const CUSTOM_CSS_NIGHTMODE = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customDark2.css';
|
const CUSTOM_CSS_NIGHTMODE = 'https://etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customDark2.css';
|
||||||
|
|
||||||
// // JS + JQuery functions used to remove alpha from events. Copy paste in browser console for quick testing
|
// // JS + JQuery functions used to remove alpha from events. Copy paste in browser console for quick testing
|
||||||
// // Remove alpha from given Jquery node
|
// // Remove alpha from given Jquery node
|
||||||
|
|
|
@ -8,7 +8,7 @@ type Props = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const URL = 'https://www.etud.insa-toulouse.fr/wiketud';
|
const URL = 'https://wiki.etud.insa-toulouse.fr/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class defining the app's planex screen.
|
* Class defining the app's planex screen.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import AsyncStorageManager from "./AsyncStorageManager";
|
||||||
import LocaleManager from "./LocaleManager";
|
import LocaleManager from "./LocaleManager";
|
||||||
import passwords from "../passwords";
|
import passwords from "../passwords";
|
||||||
|
|
||||||
const EXPO_TOKEN_SERVER = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/expo_notifications/save_token.php';
|
const EXPO_TOKEN_SERVER = 'https://etud.insa-toulouse.fr/~amicale_app/expo_notifications/save_token.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static class used to manage notifications sent to the user
|
* Static class used to manage notifications sent to the user
|
||||||
|
|
Loading…
Reference in a new issue