remove: some levels on flyout

This commit is contained in:
uenome 2021-01-17 12:15:52 +09:00
parent 5e9a646ddd
commit be2235cc8e
2 changed files with 27 additions and 13 deletions

View File

@ -503,7 +503,6 @@
</block> </block>
</category> --> </category> -->
<category name="ループ" css-icon="customIcon fas fa-redo-alt" categorystyle="loop_category"> <category name="ループ" css-icon="customIcon fas fa-redo-alt" categorystyle="loop_category">
<label text="Loops" web-icon="&#xf01e;" web-class="blocklyFlyoutHeading"></label>
<block type="controls_repeat_ext"> <block type="controls_repeat_ext">
<value name="TIMES"> <value name="TIMES">
<shadow type="math_number"> <shadow type="math_number">
@ -541,7 +540,6 @@
</block> </block>
</category> </category>
<category name="数・計算" css-icon="customIcon fas fa-calculator" categorystyle="math_category"> <category name="数・計算" css-icon="customIcon fas fa-calculator" categorystyle="math_category">
<label text="Math" web-icon="&#xf1ec;" web-class="blocklyFlyoutHeading"></label>
<block type="math_number"> <block type="math_number">
<field name="NUM">0</field> <field name="NUM">0</field>
</block> </block>
@ -601,7 +599,6 @@
<block type="math_random_float"></block> <block type="math_random_float"></block>
</category> </category>
<category name="文字列" css-icon="customIcon fas fa-font" categorystyle="text_category"> <category name="文字列" css-icon="customIcon fas fa-font" categorystyle="text_category">
<label text="Text" web-icon="&#xf031;" web-class="blocklyFlyoutHeading"></label>
<block type="text"> <block type="text">
<field name="TEXT"></field> <field name="TEXT"></field>
</block> </block>
@ -650,7 +647,6 @@
</block> </block>
</category> </category>
<category name="リスト" css-icon="customIcon fas fa-list-ol" categorystyle="list_category"> <category name="リスト" css-icon="customIcon fas fa-list-ol" categorystyle="list_category">
<label text="List" web-icon="&#xf0cb;" web-class="blocklyFlyoutHeading"></label>
<block type="lists_create_with"> <block type="lists_create_with">
<mutation items="0"></mutation> <mutation items="0"></mutation>
</block> </block>
@ -707,8 +703,7 @@
</category> </category>
<sep></sep> <sep></sep>
<category name="GPIO" colour="%{BKY_UGJ_GPIO_HUE}" css-icon="customIcon fab fa-raspberry-pi"> <category name="GPIO" colour="%{BKY_UGJ_GPIO_HUE}" css-icon="customIcon fab fa-raspberry-pi">
<label text="GPIO" web-icon="&#xf2db;" web-class="blocklyFlyoutHeading"></label> <label text="基本"></label>
<label text="基本" web-line="4.0" web-line-width="200"></label>
<block type="ugj_gpio_start"></block> <block type="ugj_gpio_start"></block>
<block type="ugj_gpio_stop"></block> <block type="ugj_gpio_stop"></block>
<block type="ugj_gpio_setoutput"> <block type="ugj_gpio_setoutput">
@ -852,10 +847,9 @@
<block type="ugj_gpio_sleep"> <block type="ugj_gpio_sleep">
<field name="sec">1</field> <field name="sec">1</field>
</block> </block>
<label text="" web-line="4.0" web-line-width="200"></label> <label text="_" web-line="4.0" web-line-width="200"></label>
</category> </category>
<category name="マルチメディア" colour="%{BKY_UGJ_MULTIMEDIA_HUE}" css-icon="customIcon fas fa-calculator"> <category name="マルチメディア" colour="%{BKY_UGJ_MULTIMEDIA_HUE}" css-icon="customIcon fas fa-calculator">
<label text="Multimedia" web-icon="&#xf11b;" web-class="blocklyFlyoutHeading"></label>
<label text="キャンバス" web-line="4.0" web-line-width="200"></label> <label text="キャンバス" web-line="4.0" web-line-width="200"></label>
<block type="ugj_canvas_init"></block> <block type="ugj_canvas_init"></block>
<block type="ugj_canvas_clearrect"> <block type="ugj_canvas_clearrect">
@ -1009,11 +1003,10 @@
<block type="ugj_tfpredict_predict"> <block type="ugj_tfpredict_predict">
<field name="result" id="!=~_{T-;nZXP-rWM|beL" variabletype="">結果</field> <field name="result" id="!=~_{T-;nZXP-rWM|beL" variabletype="">結果</field>
</block> </block>
<label text="" web-line="4.0" web-line-width="200"></label> <label text="_" web-line="4.0" web-line-width="200"></label>
</category> </category>
<category name="ネットワーク" colour="%{BKY_UGJ_NETWORK_HUE}" css-icon="customIcon fas fa-wifi"> <category name="ネットワーク" colour="%{BKY_UGJ_NETWORK_HUE}" css-icon="customIcon fas fa-wifi">
<label text="Network" web-icon="&#xf1eb;" web-class="blocklyFlyoutHeading"></label>
<label text="基本" web-line="4.0" web-line-width="200"></label> <label text="基本" web-line="4.0" web-line-width="200"></label>
<block type="ugj_network_axios_geturl"> <block type="ugj_network_axios_geturl">
<value name="url"> <value name="url">
@ -1083,10 +1076,9 @@
<block type="ugj_skyway_eventsend"> <block type="ugj_skyway_eventsend">
<field name="data" id="vN/_]nnKA$wVHSxh2_9f" variabletype="">内容</field> <field name="data" id="vN/_]nnKA$wVHSxh2_9f" variabletype="">内容</field>
</block> </block>
<label text="" web-line="4.0" web-line-width="200"></label> <label text="_" web-line="4.0" web-line-width="200"></label>
</category> </category>
<category name="特殊" colour="%{BKY_UGJ_SPECIAL_HUE}" css-icon="customIcon fas fa-plug"> <category name="特殊" colour="%{BKY_UGJ_SPECIAL_HUE}" css-icon="customIcon fas fa-plug">
<label text="Special" web-icon="&#xf1e6;" web-class="blocklyFlyoutHeading"></label>
<label text="出入力" web-line="4.0" web-line-width="200"></label> <label text="出入力" web-line="4.0" web-line-width="200"></label>
<block type="ugj_canvas_say"> <block type="ugj_canvas_say">
<value name="say"> <value name="say">
@ -1310,7 +1302,7 @@
<block type="ugj_child_debug"> <block type="ugj_child_debug">
<value name="cmd"> <value name="cmd">
</block> </block>
<label text="" web-line="4.0" web-line-width="200"></label> <label text="_" web-line="4.0" web-line-width="200"></label>
</category> </category>
</xml> </xml>

View File

@ -16,6 +16,7 @@ function createWindow() {
height: 600, height: 600,
webPreferences: { webPreferences: {
nodeIntegration: true, nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true enableRemoteModule: true
} }
}) })
@ -77,6 +78,27 @@ app.on('ready', () => {
win.reload(); win.reload();
}, },
accelerator: "F5" accelerator: "F5"
},
{
label: 'About',
click: () => {
var os = require('os');
var detail = 'Version: ' + process.env.npm_package_version + '\n'
+ 'Node.js: ' + process.versions.node + '\n'
+ 'Chrome: ' + process.versions.chrome + '\n'
+ 'Electron: ' + process.versions.electron + '\n'
+ 'V8: ' + process.versions.v8 + '\n'
+ 'OS: ' + os.type + ' ' + os.arch + ' ' + os.version + ' ' + os.release;
var options = {
type: 'info',
buttons: ['OK'],
title: 'OCoGe',
message: 'OCoGe - Oiwa Code Generator',
detail: detail
};
require('electron').dialog.showMessageBox(win, options);
},
accelerator: "CommandOrControl+I"
} }
] ]
} }