jiaantw / ncku_trans Goto Github PK
View Code? Open in Web Editor NEWThe source code for NCKU_Trans website
Home Page: https://nckustudy.com/
The source code for NCKU_Trans website
Home Page: https://nckustudy.com/
分享心得第一步驟按下返回會進入空白頁面,建議第一步驟可以不用「返回」
/post
/
Redux資料如下:
action | 說明 |
---|---|
INIT_STUDY | 將backend獲得的資料存入store |
在創建 study 時,如果偵測到錯誤時,會直接回傳 status : fail 。
沒有清理掉一些先前創建的分類項目,造成資料庫一些資料永遠
沒辦法刪除,除非進到資料庫手動刪除。
現在FE進入每個頁面幾乎都會先預設顯示loading,等request都結束再顯示一般頁面。
請將這個行為分離成共用component。
/major
Call 下面這兩隻API時,要在backend對文章做反轉排序(新的要在陣列前面,舊的要在後面)
url | method | params | authentication | 說明 |
---|---|---|---|---|
/api//get/major |
GET | - | 回傳已審核通過的major心得 | |
/api//get/major/all |
GET | V | 回傳所有major心得 |
cc @vacantron
/
請根據 feat/seo-php
這個branch繼續實作SEO相關的support。目前大部分的功能 #59 實作完了。剩下還沒做的包含
NCKU STUDY・成大學業分享
NCKU STUDY | 一個讓成大學生匿名分享轉系、輔修、雙主修...等各式學業心得的平台。希望以更透明的資訊幫助成大學生規劃自己學業的方向。(原NCKUTRANS)
NCKU STUDY・成大學業分享
NCKU STUDY | 一個讓成大學生匿名分享轉系、輔修、雙主修...等各式學業心得的平台。希望以更透明的資訊幫助成大學生規劃自己學業的方向。(原NCKUTRANS)
成功大學 XXX年XX系OO 申請心得 | NCKU STUDY
(OO是類別)/
的時候url帶有id參數,要把對應id的文章閱讀器打開有些像wording等tool處理在 #59 有做了,可以參考一下避免從頭造輪子。
/post
讓分享心得的輸入結果轉換到文章閱讀器內,提供給使用者預覽
全部頁面
加入開發
import CodeIcon from '@material-ui/icons/Code';
/major
以第一個心得的id參數進入頁面時不會開啟Modal
分兩階段
All
用Laravel Eloquent api重構controller和model
心得的id改為uuid
在 #77 後。實作DB的CRUD。最後應該要提供以下API:
url | method | params | authentication | 說明 | 目前進度 |
---|---|---|---|---|---|
/api/get/study?from={id}&num={num} |
GET | - | 回傳 confirm equal true 從id為{id} 的心得以前{num} 筆心得資料。若少於{num} 筆則剩下的全部回傳。 |
V | |
/api/get/study/all?from={id}&num={num} |
GET | - | V | 回傳從id為{id} 的心得以前{num} 筆心得資料。若少於{num} 筆則剩下的全部回傳。 |
V |
/api/post/study |
POST | 同study心得schema | 新增一筆study心得資料 | V | |
/api/patch/study?id={id} |
PATCH | confirm: true/false |
V | 更新id為{id} 的心得的confirm |
V |
/api/post/study?id={id} |
UPDATE | 同study心得schema | V | 更新id為{id} 的心得的所有資料 |
V |
/api/delete/study?id={id} |
DELETE | - | V | 刪除id為{id} 的心得 |
V |
/api/get/studyType |
GET | TBD | 取得所有study類別 | V | |
/api/post/studyType |
POST | TBD | 新增一個新的study類別 | V | |
/api/post/studyType?id={id} |
UPDATE | TBD | V | 更新id為{id} 的study類別 |
V |
/api/delete/studyType?id={id} |
DELETE | - | V | 刪除id為{id} 的study類別 |
V |
/api/get/studyStat |
GET | TBD | 取得所有study項目 | V | |
/api/post/studyStat |
POST | TBD | 新增一個新的study統計項目 | V | |
/api/post/studyStat?id={id} |
UPDATE | TBD | V | 更新id為{id} 的study統計項目 |
V |
/api/delete/studyStat?id={id} |
DELETE | - | V | 刪除id為{id} 的study統計項目 |
V |
設計通用心得的Schema。應該要能夠支援以下功能
填寫心得者建議的項目
。請參考[spec]注意: 在Schema設計完成後,請先用mock data讓前端可以call http GET到資料,再到#47 更新Schema資訊,接著再開始實作真正的細節。
(...)
background-color
和其他心得不同。請見spec/
這東西太髒了,需要重構。
如果能整理進去reselect就盡量
https://github.com/JiaAnTW/NCKU_Trans/blob/master/resources/assets/js/page/Major/EssayFilter/useFilter.js
/post
讓GET study的API可以透過url傳入要篩選的類別、資料(有就好,不需要比較大小)
?typeFilter=a001,b002?statFilter=c001,d002
類別uuid是a001或b002或是有資料uuid是c001或d002
的心得(全部都是聯集,只要有任一就輸出)讓GET study的API可以透過url傳入要篩選的關鍵字
?p=分享
分享
字串的心得(全部都是聯集,只要有任一就輸出)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.