Skip to content

Commit 0bfcda9

Browse files
committed
deploy: 8a905e4
1 parent d9c32cc commit 0bfcda9

31 files changed

Lines changed: 120 additions & 70 deletions

File tree

‎appConfig.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ window.AppConfig = {
2323
"extension_store_url": "https://store.core.ai/src/",
2424
"app_notification_url": "assets/notifications/dev/",
2525
"linting.enabled_by_default": true,
26-
"build_timestamp": "2024-01-15T14:18:58.803Z",
26+
"build_timestamp": "2024-01-16T06:26:20.592Z",
2727
"googleAnalyticsID": "G-P4HJFPDB76",
2828
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
2929
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -34,7 +34,7 @@ window.AppConfig = {
3434
"bugsnagEnv": "development"
3535
},
3636
"name": "Phoenix",
37-
"version": "3.2.18-19707",
37+
"version": "3.2.18-19709",
3838
"apiVersion": "3.2.18",
3939
"homepage": "https://core.ai",
4040
"issues": {

‎assets/default-project/en.zip‎

57.6 KB
Binary file not shown.
57.5 KB
Loading

‎assets/default-project/en/index.html‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
<h1>Phoenix</h1>
1515
<span>Modern, Open-source, IDE For The Web <br /></span><br />
1616
</div>
17-
<div class="video-slider">
18-
<iframe
19-
title="Live HTML Preview"
20-
allow="fullscreen;"
21-
class="video"
22-
src="https://www.youtube.com/embed/Jkg3nAZ6vF8?ecver=2&enablejsapi=1"></iframe>
17+
<div>
18+
<a href="https://www.youtube.com/watch?v=Jkg3nAZ6vF8" target="_blank" title="Phoenix YouTube Channel">
19+
<img src="images/youtube_video.png" alt="Phoenix Code on YouTube"
20+
title="Phoenix Code on YouTube"
21+
style="cursor: pointer"/>
22+
</a>
2323
</div>
2424
</div>
2525
<img id="cloudLeftTop" alt="cloud" src="images/vector-top-left.png" />

‎assets/default-project/en/styles.css‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@ h1 {
158158
}
159159
}
160160

161-
.video-slider {
162-
width: 100%;
163-
height: 15em;
164-
position: relative;
165-
overflow: hidden;
166-
}
167161
.video {
168162
height: 100%;
169163
width: 100%;

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

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,17 @@ function getDisplayLocation(projectPath) {
7777
return Strings.PROJECT_FROM_BROWSER;
7878
}
7979

80+
const videoHTML = `<iframe id="noProjectIframe" style="align-items: center"
81+
src="https://www.youtube.com/embed/vtks0cus0hA" title="YouTube video player"
82+
frameBorder="0"
83+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
84+
allowFullScreen></iframe>`;
85+
86+
const imageHTML = `<img src="images/youtube_video.png" alt="Phoenix Code on YouTube"
87+
title="Phoenix Code on YouTube"
88+
style="cursor: pointer"
89+
onclick="window.parent.brackets.app.openURLInDefaultBrowser('https://www.youtube.com/watch?v=vtks0cus0hA')"/>`;
90+
8091
function _updateProjectCards() {
8192
let recentProjectList = $(document.getElementById('recentProjectList'));
8293
recentProjectList.empty();
@@ -86,6 +97,9 @@ function _updateProjectCards() {
8697
omitProjectsInListing = [newProjectExtension.getExploreProjectPath()],
8798
showRecentProjects = false;
8899
for(let recentProject of recentProjects){
100+
if(!recentProject.endsWith("/")){
101+
recentProject = `${recentProject}/`;
102+
}
89103
if(!defaultProjects.includes(recentProject)){
90104
showRecentProjects = true;
91105
}
@@ -94,14 +108,17 @@ function _updateProjectCards() {
94108
`recent-prj-list-${tabIndex}`, tabIndex++));
95109
}
96110
}
111+
const Phoenix = window.top.Phoenix;
97112
if(!showRecentProjects){
98113
$("#recentProjectsContainer").addClass("forced-hidden");
99114
$("#noProjectContainer").removeClass("forced-hidden");
100-
let videoHtml = `<iframe id="noProjectIframe" style="align-items: center" src="https://www.youtube.com/embed/vtks0cus0hA" title="YouTube video player"
101-
frameBorder="0"
102-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
103-
allowFullScreen></iframe>`;
104-
document.getElementById("YTVideoFrame").innerHTML = videoHtml;
115+
if(Phoenix.browser.isTauri && Phoenix.platform === 'linux'){
116+
// in desktop linux, tauri app images causes a 2-5 second pause to load the video codecs
117+
// We do not show videos in linux in default, except if the user explicitly adds a video in live preview.
118+
document.getElementById("YTVideoFrame").innerHTML = imageHTML;
119+
} else {
120+
document.getElementById("YTVideoFrame").innerHTML = videoHTML;
121+
}
105122
}
106123
}
107124

57.5 KB
Loading

‎assets/sample-projects/HTML5.zip‎

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

0 commit comments

Comments
 (0)