{"id":19978459,"url":"https://github.com/fiercex/leaf","last_synced_at":"2026-04-30T03:37:05.997Z","repository":{"id":142935861,"uuid":"59028220","full_name":"fierceX/Leaf","owner":"fierceX","description":"UWP掌上题库","archived":false,"fork":false,"pushed_at":"2017-05-31T02:28:09.000Z","size":1135,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T18:08:34.346Z","etag":null,"topics":["c-sharp","mvvmlight","sqlite","uwp","uwp-ef","xaml"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fierceX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-17T14:07:51.000Z","updated_at":"2019-03-06T05:13:13.000Z","dependencies_parsed_at":"2023-06-26T02:03:38.241Z","dependency_job_id":null,"html_url":"https://github.com/fierceX/Leaf","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fierceX/Leaf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2FLeaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2FLeaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2FLeaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2FLeaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fierceX","download_url":"https://codeload.github.com/fierceX/Leaf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fierceX%2FLeaf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32454145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","mvvmlight","sqlite","uwp","uwp-ef","xaml"],"created_at":"2024-11-13T03:33:42.867Z","updated_at":"2026-04-30T03:37:01.073Z","avatar_url":"https://github.com/fierceX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 掌上题库\n## 编译工具： vs2017\n其实当初使用的 vs2015，但是2017出来了就升上去了\n## 所使用类库 \n1. Microsoft.ApplicationInsights: 2.2.0\n2. Microsoft.ApplicationInsights.PersistenceChannel: 1.2.3\n3. Microsoft.ApplicationInsights.WindowsApps: 1.1.1\n4. Microsoft.EntityFrameworkCore.Sqlite: 1.1.1\n5. Microsoft.EntityFrameworkCore.Tools: 1.1.0\n6. Microsoft.Net.Compilers: 1.3.2\n7. Microsoft.NETCore.UniversalWindowsPlatform: 5.3.1\n8. MvvmLightLibs: 5.3.0\n9. Newtonsoft.Json: 9.0.1\n## 开发历程\n初次开发手机端app，还是UWP形式的，所有有些问题在所难免，整体采用mvvm框架，但是对mvvm理解的并不深，只是套用了别人的框架，但在开发过程中也受益匪浅，随着开发的进行，对一些模式也有了新的认识。  \n第一次开发的时候是为了写软件工程大作业，和一个朋友商量了一下，就开工了，对什么都不了解，套用网上的代码，边学边改边写，总算马马虎虎的完成了大作业。  \n后来，大四，为了完善这个项目，也为了给自己点压迫力，答应送同学当毕业设计，然后就修改了一些东西，主要牵扯到sqlite的一些东西，从当初pcl的访问方式，彻底改成了ef的方式，中间也走了一些坑，包括core的ef不支持多对多关系，迂回曲折的总算解决了，还修改了题库导入方式，从单个json文件变成了zip压缩包。  \n原来还想上架Windows应用商店，但是没有精力也就不了了之了，以后有新的想法还会继续修改，现在就先到这吧。  \n最后，代码太渣不入大佬法眼  \n## 题库导入例子\n项目里的 **examples.zip** 就是题库例子，里面包含一个 **data.json** 的题库内容文件，和一堆图片 data.json 的格式如下：  \n\n            {\n            \"Single\": [\n                {\n                    \"Image\": \"图片名\",\n                    \"Stems\": \"题干\",\n                    \"Answer\": \"答案\",\n                    \"choices\": [\n                        \"选项1\",\n                        \"选项2\",\n                        \"选项3\"\n                    ],\n                    \"Level\": 1,\n                    \"Type\": \"类型\",\n                    \"Subject\": \"主题\"\n                }\n            ],\n            \"Gap\": [\n                {\n                    \"Image\": \"图片名\",\n                    \"Stems\": \"题干\",\n                    \"Answer\": \"答案\",\n                    \"Level\": 1,\n                    \"Type\": \"类型\",\n                    \"Subject\": \"主题\"\n                }\n            ]\n        }\n\n具体看文件里的例子。\n## 参考资料\n[MVVM之MVVMLight，一个登录注销过程的简单模拟 ](http://www.cnblogs.com/cjw1115/p/5060652.html)  \n[win10 在应用中使用SQLite](http://www.cnblogs.com/h82258652/p/4802076.html)  \n[关于MVVMLight设计模式系列](http://www.wxzzz.com/958.html)  \n[微软官方文档，UWP使用EF](https://docs.microsoft.com/en-us/ef/core/get-started/uwp/getting-started)  \n[Win10 UWP 开发系列：使用SQLite](http://www.cnblogs.com/yanxiaodi/p/4941312.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiercex%2Fleaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiercex%2Fleaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiercex%2Fleaf/lists"}