Skip to content

Commit 3c349ea

Browse files
committed
deploy: 606b7d0
1 parent 33cd085 commit 3c349ea

File tree

110 files changed

+2633
-260
lines changed

Some content is hidden

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

110 files changed

+2633
-260
lines changed

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.AppConfig = {
2828
"app_notification_url": "assets/notifications/dev/",
2929
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
3030
"linting.enabled_by_default": true,
31-
"build_timestamp": "2025-09-01T05:12:56.755Z",
31+
"build_timestamp": "2025-09-01T07:42:48.106Z",
3232
"googleAnalyticsID": "G-P4HJFPDB76",
3333
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3434
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -40,7 +40,7 @@ window.AppConfig = {
4040
"bugsnagEnv": "development"
4141
},
4242
"name": "Phoenix Code",
43-
"version": "4.1.2-21382",
43+
"version": "4.1.2-21388",
4444
"apiVersion": "4.1.2",
4545
"homepage": "https://core.ai",
4646
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

assets/new-project/assets/css/responsive.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
width: 100%;
3737
}
3838

39-
.editor-name h4 {
39+
.editor-name h4, .editor-name h4 span {
4040
font-size: 22px;
4141
}
4242

@@ -79,21 +79,21 @@
7979
margin-left: 0px;
8080
width: 48%;
8181
}
82-
82+
8383
.project-content-right {
8484
width: 48%;
8585

8686
}
87-
87+
8888
.website-detail input {
8989
width: 242px;
9090
height: 42px;
9191
}
92-
92+
9393
#noProjectIframe {
9494
width: 267px;
9595
}
96-
96+
9797
}
9898

9999
@media (max-width: 650px) {

assets/new-project/assets/js/code-editor.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,36 @@ function _openURLInTauri(url) {
183183
}
184184
}
185185

186+
function _updateProBranding() {
187+
try {
188+
const $freeTitle = $('.phoenix-free-title');
189+
const $proTitle = $('.phoenix-pro-title');
190+
const $proTitleSpan = $('.pro-plan-name');
191+
192+
if (!$freeTitle.length || !$proTitle.length || !$proTitleSpan.length) {
193+
console.warn('Pro branding elements not found');
194+
return;
195+
}
196+
197+
// Get plan info from window.top.Phoenix.pro.plan
198+
const planInfo = window.top.Phoenix && window.top.Phoenix.pro && window.top.Phoenix.pro.plan;
199+
200+
if (planInfo && planInfo.paidSubscriber) {
201+
// Hide free title, show pro title
202+
$freeTitle.addClass('forced-hidden');
203+
$proTitle.removeClass('forced-hidden');
204+
// Update plan name
205+
$proTitleSpan.text(planInfo.name || 'Phoenix Pro');
206+
} else {
207+
// Show free title, hide pro title
208+
$freeTitle.removeClass('forced-hidden');
209+
$proTitle.addClass('forced-hidden');
210+
}
211+
} catch (error) {
212+
console.error('Error updating pro branding:', error);
213+
}
214+
}
215+
186216
function initCodeEditor() {
187217
document.getElementById("openFolderBtn").onclick = function() {
188218
Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT, "main.Click", "open-folder");
@@ -252,4 +282,5 @@ function initCodeEditor() {
252282
_showFirstTimeExperience();
253283
$("body").append($(`<script async defer src="https://buttons.github.io/buttons.js"></script>`));
254284
_attachSettingBtnEventListeners();
285+
_updateProBranding();
255286
}

assets/new-project/code-editor.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@
1515
<script src="../../thirdparty/floating-ui.core.umd.min.js"></script>
1616
<script src="../../thirdparty/floating-ui.dom.umd.min.js"></script>
1717
<script src="assets/js/notification-ui.js"></script>
18+
<style>
19+
.phoenix-pro-title {
20+
background: linear-gradient(
21+
45deg,
22+
#ff8c42, /* deep orange */
23+
#ffa500, /* bright orange */
24+
#ffcc70, /* golden yellow */
25+
#ffd700 /* rich gold */
26+
);
27+
background-clip: text;
28+
-webkit-background-clip: text; /* Chrome, Safari */
29+
color: transparent; /* works in Firefox */
30+
-webkit-text-fill-color: transparent; /* Chrome, Safari */
31+
display: inline-block;
32+
}
33+
</style>
1834
</head>
1935
<body id="top" onload="init(); initCodeEditor();">
2036
<div class="code-editor-card">
@@ -24,7 +40,8 @@
2440
<img src="images/logo.png" alt="image"/>
2541
</div>
2642
<div class="editor-name">
27-
<h4 class="localize">{{APP_TITLE}}</h4>
43+
<h4 class="localize phoenix-free-title">{{APP_TITLE}}</h4>
44+
<h4 class="phoenix-pro-title forced-hidden"><a href="https://account.phcode.dev" target="_blank" rel="noopener" class="phoenix-pro"><span class="pro-plan-name">Phoenix Pro</span><i class="fa-solid fa-feather orange-gold" style="margin-left: 4px;"></i></a></h4>
2845
<!-- Place this tag where you want the button to render. -->
2946
<div style="display: flex; justify-content: space-between;">
3047
<span class="localize">{{BUILD_THE_WEB}}</span>

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.

0 commit comments

Comments
 (0)