Giter Club home page Giter Club logo

website-4's Introduction

MIT license GitHub contributors GitHub issues telegram React typescript

studentiunimi.it is a fully responsive website built with React and Fluent UI, with the aim of providing services and access to all groups of didactic courses and general purposes to students of the University of Milan. This website displays data and interacts with a database thanks to the APIs made available by the backend.

preview

Features โœจ

Dark Theme ๐ŸŒš

What world would it be without a dark mode?

dark theme

Localization ๐ŸŒ

Localization is crucial for a website that can be used by international students; we make it available without further page loads.

localization

Color Themes ๐Ÿญ

Infinite possibilities for multi-color palette usage.

palette

Simple service to create requests and handle APIs responses.

/**
 * Class to build response
 */
class Result<T>
{
    public status:number;
    public value?:T;
    public message:string;

    constructor(status: number, value?:T, message:string = "")
    {
        this.status = status;
        this.value = value;
        this.message = message;
    }
};
/**
 * Main function to retrieve data from endpoints.
 * @param {string} path Path of the resource
 */
async function getAsync<T>(path: string) : Promise<Result<T>>
{
    try {
        const response = await fetch(path);

        if (!response.ok) {
            return new Result<T>(response.status, undefined, response.statusText);
        }

        let res = await response.json() as T;
        return new Result<T>(200,res);
    } catch(err) {
        console.error(err);
        return new Result<T>(500,undefined);
    }
};

Example of academic courses retrieve:

/**
 * This function retrieves the courses of a specific degree.
 * @param {string} degreeKey
 */
export async function getCourses(degreeKey: string): Promise<Result<CourseDegree[]>> {
    return getAsync<CourseDegree[]>(`${api_endpoint}${courses_endpoint}?deg_id=${degreeKey}`);
};

Main links of StudentiUnimi Network

  • ๐Ÿ›ซ Telegram channel (You can find everything here);
  • ๐Ÿ“ Groups (You can find all our groups here);
  • ๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ Main group (Here you can talk about anything related to our University)
  • ๐Ÿ“ฎ Rules of Telegram groups (Read before using any of our groups);
  • ๐Ÿ“– Wiki (Resource to exchange useful materials about teaching courses);
  • ๐Ÿ‘โ€๐Ÿ—จ Services and guides (How to download video lessons from Ariel, Unsubscribe from webmail lists, Unimia, Sifa Services, Webmail, Student Portal, Virtual classroom, etc.);
  • ๐Ÿ‘จโ€๐Ÿ’ป University related informations (Useful informations about our University and Representatives list).

The network and its website are not affiliated with the University of Milan.

Contributors

website-4's People

Contributors

busolind avatar e-magon avatar gabrieledarrigo avatar giuseppetm avatar grobx avatar manuelelucchi avatar marcobuster avatar mroik avatar robertopinotti avatar stefanodelbosco avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.