Skip to content

Commit 0f9a47c

Browse files
committed
deployment
1 parent efcddd6 commit 0f9a47c

File tree

8 files changed

+576
-476
lines changed

8 files changed

+576
-476
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ REPL (Read-Evaluate-Print Loop) is a coding mode where you can interact with the
6161

6262
## About
6363

64-
Version: 2.0.0 Beta.3
64+
Version: 2.1.0
6565

6666
[CircuitPython](https://circuitpython.org/) is a version of Python that runs on microcontrollers and single-board computers. Its development is sponsored by [Adafruit](https://www.adafruit.com/).
6767

docs/index.html

Lines changed: 542 additions & 465 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"description": "A browser-based IDE for CircuitPython supported microcontrollers. No installation needed. Handy and powerful.",
44
"icons": [
55
{
6-
"src": "/blinka.svg",
6+
"src": "blinka.svg",
77
"type": "image/svg+xml",
88
"sizes": "800x800"
99
},
1010
{
11-
"src": "/blinka-192.png",
11+
"src": "blinka-192.png",
1212
"type": "image/png",
1313
"sizes": "192x192"
1414
},
1515
{
16-
"src": "/blinka-512.png",
16+
"src": "blinka-512.png",
1717
"type": "image/png",
1818
"sizes": "512x512"
1919
}

docs/service-worker.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
const CACHE_NAME = "CircuitPython-Online-IDE-cache";
2-
const OFFLINE_URL = "/index.html";
1+
// The service-worker is configured to allow the IDE to be installed
2+
// as a local app for offline use. In the Chrome URL bar you
3+
// will see an install button when you visit the IDE website.
4+
//
5+
// Once the app is installed, it will try to update itself when
6+
// the Internet is available.
7+
//
8+
// The intention is to cache all files needed to run the IDE.
9+
// If new files are added to the deployment, update the
10+
// CACHE_NAME variable to a new version and update the
11+
// values in urlsToCache to include the new files.
12+
13+
// Name of the cache. Update when the list of files to cache changes.
14+
const CACHE_NAME = "CircuitPython-Online-IDE-cache.20250716.001";
315

416
// List all URLs you want to cache
5-
const urlsToCache = ["/", "/index.html"];
17+
const urlsToCache = ["index.html", "service-worker.js", "blinka-192.png", "blinka-512.png", "blinka.svg"];
618

719
// Install event: Cache the static files
820
self.addEventListener("install", (event) => {
@@ -28,6 +40,8 @@ self.addEventListener("activate", (event) => {
2840
);
2941
});
3042

43+
// Intercept fetch requests, then try to get a fresh copy of the file
44+
// if the Internet is available, otherwise serve the cached version.
3145
self.addEventListener("fetch", (event) => {
3246
event.respondWith(
3347
caches.open(CACHE_NAME).then((cache) => {
@@ -40,6 +54,7 @@ self.addEventListener("fetch", (event) => {
4054
})
4155
.catch(() => {
4256
// Network request failed; if there's a cache, serve it
57+
console.log("Serving cached response for " + event.request.url);
4358
return cachedResponse;
4459
});
4560

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "circuitpython-online-ide",
33
"private": true,
4-
"version": "2.0.0",
4+
"version": "2.1.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src/docs/About.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## CircuitPython Online IDE
22

3-
Version: 2.0.0 Beta.3
3+
Version: 2.1.0
44

55
[CircuitPython](https://circuitpython.org/) is a version of Python that runs on microcontrollers and single-board computers. Its development is sponsored by [Adafruit](https://www.adafruit.com/).
66

src/docs/Version history.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## Version 2.1.0
2+
Released on July 18th, 2025
3+
4+
Significant updates from version 2.0.0 Beta.3 include:
5+
- Serial Console rewrote with Xterm
6+
- Progressive Web App
7+
- Performance improvement and bug fixes
8+
19
## Version 2.0.0 Beta.3
210
Released on July 12th, 2025
311

0 commit comments

Comments
 (0)