зеркало из https://github.com/microsoft/pxt-badge.git
refresh examples
This commit is contained in:
Родитель
8c6cded66b
Коммит
0417e8950c
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
---
|
||||
|
||||
# MakeCode Badge
|
||||
|
||||
A framework to create electronic badges in MakeCode Arcade
|
||||
|
@ -46,3 +49,5 @@ Resources:
|
|||
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
|
||||
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
|
||||
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
|
||||
|
||||
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("https://arcade.makecode.com/", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>
|
||||
|
|
10
pxt.json
10
pxt.json
|
@ -2,6 +2,7 @@
|
|||
"name": "badge",
|
||||
"version": "0.0.5",
|
||||
"description": "A framework to create electronic badges in MakeCode Arcade",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"device": "*",
|
||||
"palette": "*",
|
||||
|
@ -9,7 +10,7 @@
|
|||
"controller": "*",
|
||||
"color": "*",
|
||||
"power": "*",
|
||||
"qrcode": "github:pelikhan/pxt-qrcode#v0.0.4"
|
||||
"qrcode": "github:pelikhan/pxt-qrcode#v0.0.6"
|
||||
},
|
||||
"files": [
|
||||
"README.md",
|
||||
|
@ -24,7 +25,8 @@
|
|||
"test.ts"
|
||||
],
|
||||
"public": true,
|
||||
"license": "MIT",
|
||||
"preferredEditor": "tsprj",
|
||||
"installedVersion": "workspace:2e6496b4-688e-4eb1-9417-596218386937"
|
||||
"supportedTargets": [
|
||||
"arcade"
|
||||
],
|
||||
"preferredEditor": "tsprj"
|
||||
}
|
||||
|
|
7
test.ts
7
test.ts
|
@ -1,8 +1,7 @@
|
|||
// tests go here; this will not be compiled when this package is used as a library
|
||||
badge.setName("Cortana")
|
||||
badge.setCompany("NA")
|
||||
badge.setLogo("NA", 3);
|
||||
badge.start();
|
||||
badge.setCompany("Company")
|
||||
badge.setLogo("Logo", 3);
|
||||
|
||||
// user config
|
||||
badge.setSocial("https://www.linkedin.com/in/xyz/")
|
||||
|
@ -51,5 +50,5 @@ badge.setProgram({
|
|||
]
|
||||
})
|
||||
|
||||
storyboard.loaderBootSequence.register();
|
||||
storyboard.loaderBootSequence.register()
|
||||
badge.start()
|
Загрузка…
Ссылка в новой задаче