Skip to content

Commit d9f4d2f

Browse files
committed
deploy: cd657c3
1 parent f384114 commit d9f4d2f

201 files changed

Lines changed: 508 additions & 404 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ window.AppConfig = {
3535
"app_update_url": "https://updates.phcode.io/tauri/update-latest-pre-release.json",
3636
"extensionTakedownURL": "https://updates.phcode.io/extension_takedown.json",
3737
"linting.enabled_by_default": true,
38-
"build_timestamp": "2026-04-26T15:23:36.538Z",
38+
"build_timestamp": "2026-04-26T16:59:45.309Z",
3939
"googleAnalyticsID": "G-FP5S9BKDSJ",
4040
"googleAnalyticsIDDesktop": "G-D5R1Y6PTS8",
4141
"mixPanelID": "a7e08ffd43c37767c29b13df1d2e6c62",
@@ -47,7 +47,7 @@ window.AppConfig = {
4747
"bugsnagEnv": "staging"
4848
},
4949
"name": "Phoenix Code",
50-
"version": "5.1.8-22816",
50+
"version": "5.1.8-22818",
5151
"apiVersion": "5.1.8",
5252
"homepage": "https://core.ai",
5353
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/phoenix-splash/live-preview-error.html

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,40 @@
55
<link rel="stylesheet" href="styles.css">
66
<meta name="robots" content="noindex">
77
<script type="text/javascript">
8+
// URL params are reflected into the page, so they must NEVER reach
9+
// innerHTML — that would be reflected XSS. Build the DOM with
10+
// textContent and createElement only. The strings are plain text:
11+
// mainHeading uses "\n" for line breaks, mainSpan uses "{0}" as
12+
// the placeholder for the phcode.io link.
813
function applyTranslations() {
9-
const urlSearchParams = new URLSearchParams(window.location.search);
10-
const params = Object.fromEntries(urlSearchParams.entries());
11-
if(params.mainHeading){
12-
document.getElementById("mainHeading").innerHTML = decodeURIComponent(params.mainHeading);
14+
const params = Object.fromEntries(
15+
new URLSearchParams(window.location.search).entries()
16+
);
17+
if (params.mainHeading) {
18+
const el = document.getElementById("mainHeading");
19+
el.textContent = "";
20+
const lines = decodeURIComponent(params.mainHeading).split("\n");
21+
lines.forEach(function(line, i) {
22+
if (i > 0) {
23+
el.appendChild(document.createElement("br"));
24+
}
25+
el.appendChild(document.createTextNode(line));
26+
});
1327
}
14-
if(params.mainSpan){
15-
document.getElementById("mainSpan").innerHTML = decodeURIComponent(params.mainSpan);
28+
if (params.mainSpan) {
29+
const el = document.getElementById("mainSpan");
30+
el.textContent = "";
31+
const parts = decodeURIComponent(params.mainSpan).split("{0}");
32+
parts.forEach(function(part, i) {
33+
if (i > 0) {
34+
const a = document.createElement("a");
35+
a.href = "https://phcode.io";
36+
a.style.color = "white";
37+
a.textContent = "phcode.io";
38+
el.appendChild(a);
39+
}
40+
el.appendChild(document.createTextNode(part));
41+
});
1642
}
1743
}
1844
</script>
@@ -23,9 +49,9 @@
2349
<div id="mainDiv">
2450
<img id="logo" src="images/phoenix-logo-broken.svg"/>
2551
<div id="MainText" class="safari-text">
26-
<h2 id="mainHeading">Uh Oh! <br>Your current browser doesn't support live preview.</h2>
52+
<h2 id="mainHeading">Uh Oh!<br>Your current browser doesn't support live preview.</h2>
2753
<span id="mainSpan">
28-
Get the best live preview experience by downloading our native apps for Windows, Mac, and Linux from <a href="https://phcode.io" style="color: white">phcode.io</a>.<br>
54+
Get the best live preview experience by downloading our native apps for Windows, Mac, and Linux from <a href="https://phcode.io" style="color: white">phcode.io</a>.
2955
</span><br>
3056
</div>
3157
</div>

assets/sample-projects/HTML5.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

assets/sample-projects/explore.zip

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

brackets.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cacheManifest.json

Lines changed: 49 additions & 49 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)