@lvce-editor/title-bar-worker 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/titleBarWorkerMain.js +34 -41
- package/package.json +1 -1
|
@@ -1146,7 +1146,7 @@ const i18nString = (key, placeholders = emptyObject) => {
|
|
|
1146
1146
|
/**
|
|
1147
1147
|
* @enum {string}
|
|
1148
1148
|
*/
|
|
1149
|
-
const UiStrings$
|
|
1149
|
+
const UiStrings$1 = {
|
|
1150
1150
|
Copy: 'Copy',
|
|
1151
1151
|
CopyLineDown: 'Copy Line Down',
|
|
1152
1152
|
CopyLineUp: 'Copy Line Up',
|
|
@@ -1160,40 +1160,40 @@ const UiStrings$2 = {
|
|
|
1160
1160
|
ToggleLineComment: 'Toggle Line Comment',
|
|
1161
1161
|
Undo: 'Undo'};
|
|
1162
1162
|
const cut = () => {
|
|
1163
|
-
return i18nString(UiStrings$
|
|
1163
|
+
return i18nString(UiStrings$1.Cut);
|
|
1164
1164
|
};
|
|
1165
1165
|
const copy = () => {
|
|
1166
|
-
return i18nString(UiStrings$
|
|
1166
|
+
return i18nString(UiStrings$1.Copy);
|
|
1167
1167
|
};
|
|
1168
1168
|
const paste = () => {
|
|
1169
|
-
return i18nString(UiStrings$
|
|
1169
|
+
return i18nString(UiStrings$1.Paste);
|
|
1170
1170
|
};
|
|
1171
1171
|
const undo = () => {
|
|
1172
|
-
return i18nString(UiStrings$
|
|
1172
|
+
return i18nString(UiStrings$1.Undo);
|
|
1173
1173
|
};
|
|
1174
1174
|
const redo = () => {
|
|
1175
|
-
return i18nString(UiStrings$
|
|
1175
|
+
return i18nString(UiStrings$1.Redo);
|
|
1176
1176
|
};
|
|
1177
1177
|
const toggleLineComment = () => {
|
|
1178
|
-
return i18nString(UiStrings$
|
|
1178
|
+
return i18nString(UiStrings$1.ToggleLineComment);
|
|
1179
1179
|
};
|
|
1180
1180
|
const toggleBlockComment = () => {
|
|
1181
|
-
return i18nString(UiStrings$
|
|
1181
|
+
return i18nString(UiStrings$1.ToggleBlockComment);
|
|
1182
1182
|
};
|
|
1183
1183
|
const selectAll = () => {
|
|
1184
|
-
return i18nString(UiStrings$
|
|
1184
|
+
return i18nString(UiStrings$1.SelectAll);
|
|
1185
1185
|
};
|
|
1186
1186
|
const copyLineUp = () => {
|
|
1187
|
-
return i18nString(UiStrings$
|
|
1187
|
+
return i18nString(UiStrings$1.CopyLineUp);
|
|
1188
1188
|
};
|
|
1189
1189
|
const copyLineDown = () => {
|
|
1190
|
-
return i18nString(UiStrings$
|
|
1190
|
+
return i18nString(UiStrings$1.CopyLineDown);
|
|
1191
1191
|
};
|
|
1192
1192
|
const moveLineUp = () => {
|
|
1193
|
-
return i18nString(UiStrings$
|
|
1193
|
+
return i18nString(UiStrings$1.MoveLineUp);
|
|
1194
1194
|
};
|
|
1195
1195
|
const moveLineDown = () => {
|
|
1196
|
-
return i18nString(UiStrings$
|
|
1196
|
+
return i18nString(UiStrings$1.MoveLineDown);
|
|
1197
1197
|
};
|
|
1198
1198
|
|
|
1199
1199
|
const Edit$1 = 2;
|
|
@@ -1272,7 +1272,7 @@ const MenuEntriesEdit = {
|
|
|
1272
1272
|
/**
|
|
1273
1273
|
* @enum {string}
|
|
1274
1274
|
*/
|
|
1275
|
-
const UiStrings
|
|
1275
|
+
const UiStrings = {
|
|
1276
1276
|
NewFile: 'New File',
|
|
1277
1277
|
NewWindow: 'New Window',
|
|
1278
1278
|
OpenFile: 'Open File',
|
|
@@ -1283,28 +1283,28 @@ const UiStrings$1 = {
|
|
|
1283
1283
|
SaveAll: 'Save All'
|
|
1284
1284
|
};
|
|
1285
1285
|
const newFile = () => {
|
|
1286
|
-
return i18nString(UiStrings
|
|
1286
|
+
return i18nString(UiStrings.NewFile);
|
|
1287
1287
|
};
|
|
1288
1288
|
const newWindow = () => {
|
|
1289
|
-
return i18nString(UiStrings
|
|
1289
|
+
return i18nString(UiStrings.NewWindow);
|
|
1290
1290
|
};
|
|
1291
1291
|
const openFile = () => {
|
|
1292
|
-
return i18nString(UiStrings
|
|
1292
|
+
return i18nString(UiStrings.OpenFile);
|
|
1293
1293
|
};
|
|
1294
1294
|
const openFolder = () => {
|
|
1295
|
-
return i18nString(UiStrings
|
|
1295
|
+
return i18nString(UiStrings.OpenFolder);
|
|
1296
1296
|
};
|
|
1297
1297
|
const openRecent = () => {
|
|
1298
|
-
return i18nString(UiStrings
|
|
1298
|
+
return i18nString(UiStrings.OpenRecent);
|
|
1299
1299
|
};
|
|
1300
1300
|
const save = () => {
|
|
1301
|
-
return i18nString(UiStrings
|
|
1301
|
+
return i18nString(UiStrings.Save);
|
|
1302
1302
|
};
|
|
1303
1303
|
const saveAll = () => {
|
|
1304
|
-
return i18nString(UiStrings
|
|
1304
|
+
return i18nString(UiStrings.SaveAll);
|
|
1305
1305
|
};
|
|
1306
1306
|
const exit = () => {
|
|
1307
|
-
return i18nString(UiStrings
|
|
1307
|
+
return i18nString(UiStrings.Exit);
|
|
1308
1308
|
};
|
|
1309
1309
|
|
|
1310
1310
|
const Web = 1;
|
|
@@ -1388,6 +1388,7 @@ const Help = 'Help';
|
|
|
1388
1388
|
const Maximize = 'Maximize';
|
|
1389
1389
|
const Minimize = 'Minimize';
|
|
1390
1390
|
const MoreDot = 'More ...';
|
|
1391
|
+
const NewTerminal = 'New Terminal';
|
|
1391
1392
|
const OpenProcessExplorer = 'Open Process Explorer';
|
|
1392
1393
|
const Run = 'Run';
|
|
1393
1394
|
const Selection = 'Selection';
|
|
@@ -1963,21 +1964,11 @@ const MenuEntriesSelection = {
|
|
|
1963
1964
|
id: id$3
|
|
1964
1965
|
};
|
|
1965
1966
|
|
|
1966
|
-
/**
|
|
1967
|
-
* @enum {string}
|
|
1968
|
-
*/
|
|
1969
|
-
const UiStrings = {
|
|
1970
|
-
NewTerminal: 'New Terminal'
|
|
1971
|
-
};
|
|
1972
|
-
const newTerminal = () => {
|
|
1973
|
-
return i18nString(UiStrings.NewTerminal);
|
|
1974
|
-
};
|
|
1975
|
-
|
|
1976
1967
|
const id$2 = Terminal$1;
|
|
1977
1968
|
const getMenuEntries$6 = () => {
|
|
1978
1969
|
return [{
|
|
1979
1970
|
id: 'newTerminal',
|
|
1980
|
-
label:
|
|
1971
|
+
label: i18nString(NewTerminal),
|
|
1981
1972
|
flags: None,
|
|
1982
1973
|
command: 'Layout.togglePanel',
|
|
1983
1974
|
args: ['Terminal']
|
|
@@ -2135,12 +2126,6 @@ const getMenuEntries$1 = (id, platform) => {
|
|
|
2135
2126
|
return menu.getMenuEntries(platform);
|
|
2136
2127
|
};
|
|
2137
2128
|
|
|
2138
|
-
const getTitleBarButtonsWeb = () => {
|
|
2139
|
-
return [];
|
|
2140
|
-
};
|
|
2141
|
-
const getTitleBarButtonsRemote = () => {
|
|
2142
|
-
return [];
|
|
2143
|
-
};
|
|
2144
2129
|
const getTitleBarButtonsElectron = (controlsOverlayEnabled, titleBarStyleCustom) => {
|
|
2145
2130
|
if (controlsOverlayEnabled) {
|
|
2146
2131
|
return [];
|
|
@@ -2166,6 +2151,15 @@ const getTitleBarButtonsElectron = (controlsOverlayEnabled, titleBarStyleCustom)
|
|
|
2166
2151
|
}
|
|
2167
2152
|
return [];
|
|
2168
2153
|
};
|
|
2154
|
+
|
|
2155
|
+
const getTitleBarButtonsRemote = () => {
|
|
2156
|
+
return [];
|
|
2157
|
+
};
|
|
2158
|
+
|
|
2159
|
+
const getTitleBarButtonsWeb = () => {
|
|
2160
|
+
return [];
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2169
2163
|
const getTitleBarButtons = (platform, controlsOverlayEnabled, titleBarStyleCustom) => {
|
|
2170
2164
|
switch (platform) {
|
|
2171
2165
|
case Electron:
|
|
@@ -2226,12 +2220,11 @@ const createTitleBarButton = button => {
|
|
|
2226
2220
|
};
|
|
2227
2221
|
|
|
2228
2222
|
const getTitleBarButtonsVirtualDom = buttons => {
|
|
2229
|
-
|
|
2223
|
+
return [{
|
|
2230
2224
|
type: Div,
|
|
2231
2225
|
className: mergeClassNames(Viewlet, TitleBarButtons),
|
|
2232
2226
|
childCount: buttons.length
|
|
2233
2227
|
}, ...buttons.flatMap(createTitleBarButton)];
|
|
2234
|
-
return dom;
|
|
2235
2228
|
};
|
|
2236
2229
|
|
|
2237
2230
|
const parentNode = {
|