GithubHelp home page GithubHelp logo

splitline / ntustapp Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 3.0 1.14 MB

一個屬於台科人的 App。

Home Page: https://play.google.com/store/apps/details?id=com.splitline.ntustapp

JavaScript 69.94% Python 1.71% Java 24.51% Objective-C 3.83%
ntust taiwan-tech react-native app android

ntustapp's Introduction

NTUSTapp

一個屬於台科人的 App

開發工具

React Native with Expo

  • 於 v1.0.0 脫離 Expo 框架,直接採用 native code

Features

Timetable

  • 個人課表
  • 課程資訊 (In progress)
  • 離線瀏覽

Score

  • 學期成績
  • GPA即時試算
  • 修課歷史紀錄

Other

  • 搜尋空教室

Release Notes

v1.3.0

  • (新增) 選課人數追蹤器
  • (優化) 砍一些蟲
  • (優化) 側邊欄介面調整

v1.2.0

  • (新增) 關於頁面
  • (優化) 歷史成績頁面改為 Tab 顯示
  • (優化) 登入速度優化
  • (優化) 側邊欄介面優化

v1.1.0

  • (優化) 殺死一些蟲蟲
  • (新增) 空教室查詢:點擊各個教室項目可查看整日狀態
  • (新增) 歷年成績:列出各學期 GPA 、排名

v1.0.0

  • (優化) 所有網路請求完全不透過 API,直接連至學校系統
  • (優化) APP 大小減少 7 成以上
  • (優化) Icon 變潮惹(?
  • (新增) 學期分數頁面可切換 GPA 4.0 / 4.3 制

v0.2.0

  • (酷炫) 學校試圖阻止學生使用 app 登入
  • (新增) 個人課表
  • (新增) 搜尋空教室

v0.1.0beta2

  • (修正) 移除不必要/多餘的權限要求。

v0.1.0beta [初版]

  • (新增) 學期成績
  • (新增) GPA即時試算(依照公布進度)
  • (新增) 修課歷史紀錄

開發細節

[v1.0.0 開始不支援 iOS]

從原始碼直接執行

git clone https://github.com/splitline/NTUSTapp.git
cd NTUSTapp
npm install
*確認你的 Android 模擬器已經啟動*
react-native run-android

原始碼主要架構

/Screen/*.js

分別為各個頁面的 js。

  • LoginScreen.js 登入畫面
  • ScoreScreen.js 當前學期成績
  • PastScoreScreen.js 過去成績紀錄
  • EmptyClassroomScreen.js 空教室查詢
  • TimetableScreen.js 課表

/NativeModule/*.js

一些由 Java 撰寫的原生 module。

  • VcodeOcr.js 黑魔法。
    • 使用方式:
    import ocr from './NativeModule/VcodeOcr';
    ocr.recognize(imagePath)
        .then((code)=>{
            console.log("Result:", code);
        })

/utils/*.js

一些小工具(雜項)。

  • ButtonSubmit.js 使用於 登入畫面 的登入按鈕
  • funcLogin.js 用於登入學生資訊系統的 function
    login(
        data,           // Account Data Object:
                        // { studentno: "", idcard: "", birthday: "", password: "" }
        successFunc,    // function successFunc($:cheerio selector of stu_menu, __VIEWSTATE of stu_menu:string)
        FailedFunc      // function failFunc(errorMsg:string)
    )

ntustapp's People

Contributors

splitline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ntustapp's Issues

使用 fetch 直接 request 到學生資訊系統

使用 fetch 直接 request 到學生資訊系統,而不另外透過自架的 API server

目前推測是 HTTPS 的問題,導致 fetch 出現 Network request failed

例如以curl而言,直接使用 curl https://stu255.ntust.edu.tw/ntust_stu/stu.aspx 會失敗

需要 curl https://stu255.ntust.edu.tw/ntust_stu/stu.aspx --sslv3
或是 curl https://stu255.ntust.edu.tw/ntust_stu/stu.aspx --tlsv1.0
才能成功(需要加入 --sslv3--tlsv1.0 參數)

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.