Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit92d2bbc

Browse files
committed
deploy:84352e3
1 parented04fa9 commit92d2bbc

File tree

270 files changed

+1249
-336
lines changed

Some content is hidden

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

270 files changed

+1249
-336
lines changed

‎appConfig.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ window.AppConfig = {
2424
"app_notification_url":"assets/notifications/dev/",
2525
"app_update_url":"https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2626
"linting.enabled_by_default":true,
27-
"build_timestamp":"2024-05-02T07:50:32.111Z",
27+
"build_timestamp":"2024-05-02T15:41:49.367Z",
2828
"googleAnalyticsID":"G-P4HJFPDB76",
2929
"googleAnalyticsIDDesktop":"G-VE5BXWJ0HF",
3030
"mixPanelID":"49c4d164b592be2350fc7af06a259bf3",
@@ -36,8 +36,8 @@ window.AppConfig = {
3636
"bugsnagEnv":"development"
3737
},
3838
"name":"Phoenix Code",
39-
"version":"3.7.0-20239",
40-
"apiVersion":"3.7.0",
39+
"version":"3.7.1-20243",
40+
"apiVersion":"3.7.1",
4141
"homepage":"https://core.ai",
4242
"issues":{
4343
"url":"https://github.com/phcode-dev/phoenix/issues"

‎assets/default-project/en.zip‎

0 Bytes
Binary file not shown.

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
}
5454

5555
.project-content-right {
56-
width:45%;
56+
width:47%;
5757
}
5858

5959
.project-content-left {
60-
width:45%;
60+
width:47%;
6161
}
6262

6363
.website-detailspan {
@@ -81,7 +81,6 @@
8181
}
8282

8383
.project-content-right {
84-
margin-left:15px;
8584
width:48%;
8685

8786
}

‎assets/new-project/assets/css/style.css‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@ body {
2222
height:100%;
2323
}
2424

25+
.even-layout {
26+
height:100%;
27+
display: flex;
28+
flex-direction: column;
29+
justify-content: space-evenly;
30+
}
31+
32+
#download-phcode-banner {
33+
background-color:#2e3031;
34+
color: white;
35+
border-radius:10px;
36+
margin-top:26px;
37+
cursor: pointer;
38+
padding-top:5px;
39+
padding-bottom:5px;
40+
}
41+
42+
#download-phcode-banner:hover {
43+
background-color:#505357;
44+
}
45+
2546
p {
2647
font-size:16px;
2748
font-weight:500;
@@ -687,7 +708,6 @@ img {
687708

688709
.project-content-left {
689710
width:400px;
690-
margin-left:25px;
691711
}
692712

693713
.project-type-list {

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,26 @@ function initCodeEditor() {
220220
Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT,"main.Click","default-project");
221221
openProject(newProjectExtension.getWelcomeProjectPath());
222222
};
223+
224+
constbanner=document.getElementById("download-phcode-banner");
225+
banner.onclick=function(){
226+
Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT,"getApp.Click",window.top.Phoenix.platform);
227+
window.top.Phoenix.app.openURLInDefaultBrowser("https://phcode.io");
228+
};
229+
if(!window.top.Phoenix.isNativeApp&&!window.top.Phoenix.browser.isChromeOS&&window.top.Phoenix.browser.isDeskTop){
230+
banner.classList.remove("forced-hidden");
231+
document.getElementById("project-items-container").classList.add("even-layout");
232+
document.getElementById("download-string").textContent=Strings.DOWNLOAD_DESKTOP_APP;
233+
if(window.top.Phoenix.platform==="win"){
234+
document.getElementById("windows-logo").classList.remove("forced-hidden");
235+
}elseif(window.top.Phoenix.platform==="mac"){
236+
document.getElementById("mac-logo").classList.remove("forced-hidden");
237+
document.getElementById("download-string").textContent=Strings.GET_DESKTOP_APP;
238+
}else{
239+
document.getElementById("linux-logo").classList.remove("forced-hidden");
240+
}
241+
}
242+
223243
document.getElementById("newHTMLBtn").onclick=function(){
224244
Metrics.countEvent(Metrics.EVENT_TYPE.NEW_PROJECT,"main.Click","html5");
225245
newProjectFromURLScreen(getPhoenixAbsURL("assets/sample-projects/HTML5.zip"),

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

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ <h5 class="localize">{{PROJECTS_AT_A_GLANCE}}</h5>
8484
</div>
8585
</div>
8686
<divclass="project-content-right">
87-
<divclass="project-content-inner text-center">
87+
<divid="project-items-container"class="project-content-inner text-center">
8888
<divclass="project-head d-flex align-items-center justify-content-between">
89-
<h4class="tab-title mb-0 localize">{{CMD_PROJECT_NEW}}</h4>
89+
<h4class="tab-title mb-0 localize">{{START_PROJECT}}</h4>
9090
<aid="viewMore"href="#"class="view-all localize">{{VIEW_MORE}}</a>
9191
</div>
92-
<ulclass="project-type-list d-flex">
92+
<ulclass="project-type-list d-flex"style="padding-bottom: 0;margin-bottom: 0;border-bottom: none;">
9393
<li>
9494
<aid="defaultProjectButton"href="#"class="tabable"tabindex="1">
9595
<imgsrc="images/logo.png"alt="image">
@@ -103,7 +103,7 @@ <h4 class="tab-title mb-0 localize">{{CMD_PROJECT_NEW}}</h4>
103103
</a>
104104
</li>
105105
<li>
106-
<aid="exploreBtn"href="#"class="tabable"tabindex="2">
106+
<aid="exploreBtn"href="#"class="tabable"tabindex="3">
107107
<imgsrc="images/video-game-gamepad.svg"alt="image">
108108
<spanclass="localize">{{EXPLORE}}</span>
109109
</a>
@@ -115,19 +115,15 @@ <h4 class="tab-title mb-0 localize">{{CMD_PROJECT_NEW}}</h4>
115115
<!-- </a>-->
116116
<!-- </li>-->
117117
</ul>
118-
<divclass="project-head d-flex align-items-center justify-content-between">
119-
<h4class="tab-title mb-0 localize">{{IMPORT_PROJECT}}</h4>
120-
<!-- <a href="#" class="view-all">View More</a>-->
121-
</div>
122118
<ulclass="project-type-list d-flex mb-0 pb-0 border-bottom-0">
123119
<li>
124-
<aid="openFolderBtn"href="#"class="tabable"tabindex="3">
120+
<aid="openFolderBtn"href="#"class="tabable"tabindex="4">
125121
<imgsrc="images/tab-img6.png"alt="image">
126122
<spanclass="localize">{{CMD_OPEN_FOLDER}}</span>
127123
</a>
128124
</li>
129125
<li>
130-
<aid="newGitHubProject"href="#"class="tabable"tabindex="4">
126+
<aid="newGitHubProject"href="#"class="tabable"tabindex="5">
131127
<imgsrc="images/tab-img7.png"alt="image">
132128
<spanclass="localize">{{GITHUB_PROJECT}}</span>
133129
</a>
@@ -139,6 +135,12 @@ <h4 class="tab-title mb-0 localize">{{IMPORT_PROJECT}}</h4>
139135
<!-- </a>-->
140136
<!-- </li>-->
141137
</ul>
138+
<divid="download-phcode-banner"class="forced-hidden">
139+
<imgstyle="padding-top: 5px; padding-bottom: 5px;margin-right: 10px;"id="windows-logo"class="forced-hidden"src="../../images/microsoft-windows-logo-svg.svg"width="40px"/>
140+
<imgstyle="padding-top: 5px; padding-bottom: 5px;margin-right: 10px;"id="mac-logo"class="forced-hidden"src="../../images/MacOS_logo.svg"width="40px"/>
141+
<imgid="linux-logo"class="forced-hidden"src="../../images/linux.svg"width="45px"/>
142+
<spanid="download-string">Download Desktop App</span>
143+
</div>
142144
</div>
143145
</div>
144146
</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 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp