How midorg-com/midorg works
元岛 is a Uni-app community and learning mini-program backed by uniCloud functions. A typical member views course lessons, submits homework, and can later see it reviewed; staff have separate management pages. The repository also includes community discussion, teams, user accounts, and paid support. The graph captures the evidenced client-to-cloud boundary and homework-review dependencies. Many cloud functions and page relationships are known only from filenames, so their internal dispatch and data flows are not asserted.
Main entry points: cf.js Cloud call helper · checkHomework.js Homework checker · index.vue Home and account · homework.vue Homework submission
Components 19
Mini-program client
- Home and account
apps/yuandao/pages/index/index.vue - User pages
apps/yuandao/pages/user - App shell
apps/yuandao/App.vue - Date formatting
apps/yuandao/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js
Learning workflow
- Course pages
apps/yuandao/pages/course - Homework submission
apps/yuandao/pages/course/homework.vue - Homework review
apps/yuandao/pages/manage/homeworkManage.vue - Other management
apps/yuandao/pages/manage - Lesson definitions
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/lessons/code.js
Community and teams
- Community pages
apps/yuandao/pages/community - Team pages
apps/yuandao/pages/team - Paid support
apps/yuandao/pages/community/contribution.vue
Cloud services
- Cloud call helper
apps/yuandao/utils/cf.js - Function entry
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/index.js - Homework checker
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/functions/checkHomework.js - Subscribe messaging
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/utils/sendSubscribeMessage.js - Payment function
apps/yuandao/uniCloud-aliyun/cloudfunctions/pay/index.js
Other components
- Member
- Static web examples
apps/web
Connections 9
- Member → Home and account: uses
- Home and account → Cloud call helper: requests user data
apps/yuandao/pages/index/index.vue - Homework submission → Cloud call helper: submits homework
apps/yuandao/pages/course/homework.vue - Homework review → Cloud call helper: loads and reviews
apps/yuandao/pages/manage/homeworkManage.vue - Team pages → Cloud call helper: creates team form
apps/yuandao/pages/team/form.vue - Paid support → Cloud call helper: requests payment
apps/yuandao/pages/community/contribution.vue - Cloud call helper → Function entry: calls function
apps/yuandao/utils/cf.js - Homework checker → Lesson definitions: imports lesson data
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/functions/checkHomework.js - Homework checker → Subscribe messaging: sends message
apps/yuandao/uniCloud-aliyun/cloudfunctions/fun/functions/checkHomework.js