Skip to content
Snippets Groups Projects
Constans.ts 516 B
Newer Older
  • Learn to ignore specific revisions
  • fz2907's avatar
    fz2907 committed
    /**
     * This is a class that contains all constant values, it help to make change on address or ports or other things.
     */
    
    
    fz2907's avatar
    fz2907 committed
    const SEVER_IP = location.hostname;
    const SERVER_PORT = 8081;
    const Server_URL =
      location.protocol + "//" + SEVER_IP + ":" + SERVER_PORT + "/";
    
    export { SEVER_IP, SERVER_PORT, Server_URL };
    
    /*
    
    fz2907's avatar
    fz2907 committed
     Change logs:
     Date        |       Author          |   Description
     2022-10-12  |    Fangzheng Zhang    |    create class and init
     2022-10-17  |    Fangzheng Zhang    |      Change to TS 
     
    
    fz2907's avatar
    fz2907 committed
      */