Skip to content

Commit 5c9ee7e

Browse files
committed
deploy: 606b7d0
1 parent c3d805e commit 5c9ee7e

File tree

93 files changed

+680
-328
lines changed

Some content is hidden

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

93 files changed

+680
-328
lines changed

appConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ window.AppConfig = {
2626
"app_notification_url": "assets/notifications/dev/",
2727
"app_update_url": "https://updates.phcode.io/tauri/update-latest-experimental-build.json",
2828
"linting.enabled_by_default": true,
29-
"build_timestamp": "2025-01-23T03:31:12.145Z",
29+
"build_timestamp": "2025-01-23T06:31:32.843Z",
3030
"googleAnalyticsID": "G-P4HJFPDB76",
3131
"googleAnalyticsIDDesktop": "G-VE5BXWJ0HF",
3232
"mixPanelID": "49c4d164b592be2350fc7af06a259bf3",
@@ -38,7 +38,7 @@ window.AppConfig = {
3838
"bugsnagEnv": "development"
3939
},
4040
"name": "Phoenix Code",
41-
"version": "4.0.1-20861",
41+
"version": "4.0.1-20862",
4242
"apiVersion": "4.0.1",
4343
"homepage": "https://core.ai",
4444
"issues": {

assets/default-project/en.zip

0 Bytes
Binary file not shown.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ img {
11201120
top: 0;
11211121
left: 0;
11221122
background: #fd7e14;
1123-
color: white;
1123+
color: black;
11241124
padding: 5px;
11251125
border-radius: 4px;
11261126
opacity: 0;

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-min.js

Lines changed: 43 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37727,7 +37727,7 @@ define("extensionsIntegrated/Phoenix/guided-tour", function (require, exports, m
3772737727
userAlreadyDidAction.beautifyCodeShown = true;
3772837728
PhStore.setItem(GUIDED_TOUR_LOCAL_STORAGE_KEY, JSON.stringify(userAlreadyDidAction));
3772937729
Metrics.countEvent(Metrics.EVENT_TYPE.UI, "guide", "beautify");
37730-
currentlyShowingNotification = NotificationUI.createFromTemplate(
37730+
currentlyShowingNotification = NotificationUI.createFromTemplate( Strings.CMD_BEAUTIFY_CODE,
3773137731
StringUtils.format(Strings.BEAUTIFY_CODE_NOTIFICATION, keyboardShortcut),
3773237732
"editor-context-menu-edit.beautifyCode", {
3773337733
allowedPlacements: ['left', 'right'],
@@ -37756,7 +37756,8 @@ define("extensionsIntegrated/Phoenix/guided-tour", function (require, exports, m
3775637756
userAlreadyDidAction.newProjectShown = true;
3775737757
PhStore.setItem(GUIDED_TOUR_LOCAL_STORAGE_KEY, JSON.stringify(userAlreadyDidAction));
3775837758
Metrics.countEvent(Metrics.EVENT_TYPE.UI, "guide", "newProj");
37759-
currentlyShowingNotification = NotificationUI.createFromTemplate(Strings.NEW_PROJECT_NOTIFICATION,
37759+
currentlyShowingNotification = NotificationUI.createFromTemplate(
37760+
Strings.START_PROJECT, Strings.NEW_PROJECT_NOTIFICATION,
3776037761
"newProject", {
3776137762
allowedPlacements: ['top', 'bottom'],
3776237763
autoCloseTimeS: 15,
@@ -101304,7 +101305,7 @@ define("nls/root/strings", {
101304101305
"HEALTH_DATA_NOTIFICATION": "Health Report Preferences",
101305101306
"HEALTH_FIRST_POPUP_TITLE": "Privacy Notice",
101306101307
"HEALTH_DATA_DO_TRACK": "Share anonymous information on how I use {APP_NAME}",
101307-
"HEALTH_DATA_NOTIFICATION_MESSAGE": "{APP_NAME} <strong>does not collect or process any personally identifiable information</strong>, but <strong>collects anonymous usage statistics</strong> to guard your privacy. Anonymous data is exempt from GDPR/CCPA notification requirements, but we believe you need to have a choice to opt out of anonymous data collection as well.<br><br> You can see your data or <strong>choose not to share any anonymous data</strong> by selecting <strong>Help > Health Report</strong>. These <strong>anonymous</strong> app usage statistics and error reports helps prioritize features, find bugs, and spot usability issues for improving your experience with {APP_NAME}. Without this data, we would not know what features it is worth building for you! <br><br>",
101308+
"HEALTH_DATA_NOTIFICATION_MESSAGE": "{APP_NAME} <strong>does not collect or process any personally identifiable information</strong>, but <strong>collects anonymous usage statistics</strong> to guard your privacy. Anonymous data is exempt from GDPR/CCPA notification requirements, but we believe you need to have a choice to opt out of anonymous data collection as well.<br><br> You can see your data or <strong>choose not to share any anonymous data</strong> by selecting <strong>Help > Health Report</strong>. These <strong>anonymous</strong> app usage statistics and error reports helps prioritize features, find bugs, and spot usability issues for improving your experience with {APP_NAME}. Without this data, we would not know what features it is worth building for you! <br>",
101308101309
"HEALTH_DATA_PREVIEW": "{APP_NAME} Health Report",
101309101310
"HEALTH_DATA_PREVIEW_INTRO": "<p>{APP_NAME} <strong>does not collect or process any personally identifiable information</strong>, but <strong>collects anonymous usage statistics</strong> to guard your privacy. These <strong>anonymous</strong> app usage statistics and error reports helps prioritize features, find bugs, and spot usability issues for improving your experience with {APP_NAME}.</p> <p>Below is a preview of the data that will be sent in your next Health Report <em>if</em> it is enabled. (Also see developer console for error logs marked 'Caught Critical error'.)</p>",
101310101311

@@ -101644,9 +101645,9 @@ define("nls/root/strings", {
101644101645
"PREVIEW": "Preview",
101645101646
"BUILD_WEBSITE": "Build Website",
101646101647
"VIEW_MORE": "View More...",
101647-
"NEW_PROJECT_NOTIFICATION": "Click this icon to open the `New Project` window again.</br> See Recent Projects, Open Folder or start projects from templates.</br> <img src=\"styles/images/new_project.png\"> <br/> <a href='#' style='float:right;'>ok</a>",
101648-
"BEAUTIFY_CODE_NOTIFICATION": "Click here or press <b>`{0}`</b> to Beautify code. </br> <img src=\"styles/images/beautify.gif\"> <br/> <a href='#' style='float:right;'>ok</a>",
101649-
"DEFAULT_PROJECT_NOTIFICATION": "Click here to open the <br/><b>default project</b> in phoenix. </br> <a href='#' style='float:right;'>ok</a>",
101648+
"NEW_PROJECT_NOTIFICATION": "Click this icon to open the `Start Project` window again.</br> See Recent Projects, Open Folder or start projects from templates.</br> <img src=\"styles/images/new_project.png\">",
101649+
"BEAUTIFY_CODE_NOTIFICATION": "Click here or press <b>`{0}`</b> to beautify code. </br> <img src=\"styles/images/beautify.gif\">",
101650+
"DEFAULT_PROJECT_NOTIFICATION": "Click here to open the <br/><b>default project</b> in {APP_NAME}. </br> <a href='#' style='float:right;'>ok</a>",
101650101651
"DIRECTORY_REPLACE_MESSAGE": "The selected folder <span class='dialog-filename'>{0}</span> is not empty. Are you sure you want to replace the folder contents with the project?",
101651101652
"DEFAULT_PROJECT_HTML_CLICK_HERE": "Click here to locate this &lt;span&gt; in the HTML file",
101652101653
"BUILD_WEBSITE_SECTION": "Build Website",
@@ -101955,6 +101956,8 @@ define("nls/root/strings", {
101955101956
"ERROR_NO_REMOTE_SELECTED": "No remote has been selected for {0}!",
101956101957
"ERROR_BRANCH_LIST": "Getting branch list failed",
101957101958
"ERROR_FETCH_REMOTE": "Fetching remote information failed",
101959+
"GIT_TOAST_TITLE": "Explore Git Features in Phoenix Code",
101960+
"GIT_TOAST_MESSAGE": "Click the Git panel icon to manage your repository. Easily commit, push, pull, and view your project history—all in one place.<br><a href='https://docs.phcode.dev/docs/Features/git'>Learn more about the Git panel →</a>",
101958101961

101959101962
// surveys
101960101963
"SURVEY_TITLE_VOTE_FOR_FEATURES_YOU_WANT": "Vote for the features you want to see next!"
@@ -172899,6 +172902,7 @@ define("widgets/NotificationUI", function (require, exports, module) {
172899172902
* });
172900172903
* ```
172901172904
*
172905+
* @param {string} title The title for the notification.
172902172906
* @param {string|Element} template A string template or HTML Element to use as the dialog HTML.
172903172907
* @param {String} [elementID] optional id string if provided will show the notification pointing to the element.
172904172908
* If no element is specified, it will be managed as a generic notification.
@@ -172908,19 +172912,21 @@ define("widgets/NotificationUI", function (require, exports, module) {
172908172912
* Values can be a mix of `['top', 'bottom', 'left', 'right']`
172909172913
* * `autoCloseTimeS` - Time in seconds after which the notification should be auto closed. Default is never.
172910172914
* * `dismissOnClick` - when clicked, the notification is closed. Default is true(dismiss).
172915+
* * `toastStyle` - To style the toast notification for error, warning, info etc. Can be
172916+
* one of `NotificationUI.NOTIFICATION_STYLES_CSS_CLASS.*` or your own css class name.
172911172917
* @return {Notification} Object with a done handler that resolves when the notification closes.
172912172918
* @type {function}
172913172919
*/
172914-
function createFromTemplate(template, elementID, options= {}) {
172920+
function createFromTemplate(title, template, elementID, options= {}) {
172915172921
// https://floating-ui.com/docs/tutorial
172916172922
options.allowedPlacements = options.allowedPlacements || ['top', 'bottom', 'left', 'right'];
172917172923
options.dismissOnClick = options.dismissOnClick === undefined ? true : options.dismissOnClick;
172918172924
if(!elementID){
172919172925
elementID = 'notificationUIDefaultAnchor';
172920172926
}
172921-
const tooltip = _createDomElementWithArrowElement(template, elementID, options);
172922-
tooltip.addClass('notification-ui-visible');
172923-
let notification = (new Notification(tooltip, NOTIFICATION_TYPE_ARROW));
172927+
const $tooltip = _createDomElementWithArrowElement(title, template, elementID, options);
172928+
$tooltip.addClass('notification-ui-visible');
172929+
let notification = (new Notification($tooltip, NOTIFICATION_TYPE_ARROW));
172924172930

172925172931
if(options.autoCloseTimeS){
172926172932
setTimeout(()=>{
@@ -172929,10 +172935,13 @@ define("widgets/NotificationUI", function (require, exports, module) {
172929172935
}
172930172936

172931172937
if(options.dismissOnClick){
172932-
tooltip.click(()=>{
172938+
$tooltip.click(()=>{
172933172939
notification.close(CLOSE_REASON.CLICK_DISMISS);
172934172940
});
172935172941
}
172942+
$tooltip.find(".notification-popup-close-button").click(()=>{
172943+
notification.close(CLOSE_REASON.CLICK_DISMISS);
172944+
});
172936172945
return notification;
172937172946
}
172938172947

@@ -172988,7 +172997,7 @@ define("widgets/NotificationUI", function (require, exports, module) {
172988172997
WorkspaceManager.on(WorkspaceManager.EVENT_WORKSPACE_UPDATE_LAYOUT, tooltip.update);
172989172998
}
172990172999

172991-
function _createDomElementWithArrowElement(domTemplate, elementID, options) {
173000+
function _createDomElementWithArrowElement(title, domTemplate, elementID, options) {
172992173001
notificationWidgetCount++;
172993173002
const onElement = document.getElementById(elementID);
172994173003
let arrowElement;
@@ -172998,18 +173007,29 @@ define("widgets/NotificationUI", function (require, exports, module) {
172998173007
if (typeof domTemplate === 'string' || domTemplate instanceof String){
172999173008
textTemplate = domTemplate;
173000173009
}
173001-
let floatingDom = $(`<div id="${widgetID}" class="notification-ui-tooltip" role="tooltip">
173002-
${textTemplate||''}</div>`);
173010+
const styleClass = NOTIFICATION_STYLES_CSS_CLASS[options.toastStyle]
173011+
|| options.toastStyle;
173012+
let $floatingDom = $(`<div id="${widgetID}" class="notification-ui-tooltip ${styleClass}" role="tooltip">
173013+
<div>
173014+
<p class='notification-popup-close-button arrow'>×</p>
173015+
</div>
173016+
<div >
173017+
<p class="notification-dialog-title">${title}</p>
173018+
</div>
173019+
<div>
173020+
<p class="notification-dialog-content">${textTemplate||''}</p>
173021+
</div></div>`);
173003173022
if(!textTemplate && domTemplate){
173004-
floatingDom.append($(domTemplate));
173023+
$floatingDom.find(".notification-dialog-content").append($(domTemplate));
173005173024
}
173006173025
if(onElement){
173007-
arrowElement = $(`<div id="${arrowID}" class="notification-ui-arrow"></div>`);
173008-
floatingDom.append(arrowElement);
173026+
arrowElement = $(`<div id="${arrowID}" class="notification-ui-arrow ${
173027+
NOTIFICATION_STYLES_CSS_CLASS[options.toastStyle] || ''}"></div>`);
173028+
$floatingDom.append(arrowElement);
173009173029
}
173010-
$("body").append(floatingDom);
173011-
_updatePositions(floatingDom[0], onElement, arrowElement[0], options);
173012-
return floatingDom;
173030+
$("body").append($floatingDom);
173031+
_updatePositions($floatingDom[0], onElement, arrowElement[0], options);
173032+
return $floatingDom;
173013173033
}
173014173034

173015173035
/**
@@ -173041,10 +173061,11 @@ define("widgets/NotificationUI", function (require, exports, module) {
173041173061
function createToastFromTemplate(title, template, options = {}) {
173042173062
options.dismissOnClick = options.dismissOnClick === undefined ? true : options.dismissOnClick;
173043173063
notificationWidgetCount++;
173064+
const styleClass = NOTIFICATION_STYLES_CSS_CLASS[options.toastStyle]
173065+
|| options.toastStyle || NOTIFICATION_STYLES_CSS_CLASS.INFO;
173044173066
const widgetID = `notification-toast-${notificationWidgetCount}`,
173045173067
$NotificationPopup = $(Mustache.render(ToastPopupHtml, {id: widgetID, title: title,
173046-
containerStyle: NOTIFICATION_STYLES_CSS_CLASS[options.toastStyle]
173047-
|| options.toastStyle || NOTIFICATION_STYLES_CSS_CLASS.INFO}));
173068+
containerStyle: styleClass}));
173048173069
$NotificationPopup.find(".notification-dialog-content")
173049173070
.append($(template));
173050173071

0 commit comments

Comments
 (0)