diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 1794a1c..4c7684a 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -29,6 +29,7 @@ export default { 'home': 'Home', }, 'Strings': { + 'fix_run_en_keyboard': 'Fix ru-en keyboard', 'str_to_lower': 'Str to lower', 'str_to_upper': 'Str to upper', }, diff --git a/src/router/index.js b/src/router/index.js index f5b7c37..cd6a5c5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -25,6 +25,11 @@ const router = createRouter({ name: 'str_to_lower', component: () => import('../views/StrToLower.vue'), }, + { + path: '/fix_run_en_keyboard', + name: 'fix_run_en_keyboard', + component: () => import('../views/FixRuEnKeyboard.vue'), + }, /** * SQL manipulation diff --git a/src/views/FixRuEnKeyboard.vue b/src/views/FixRuEnKeyboard.vue new file mode 100644 index 0000000..a7473eb --- /dev/null +++ b/src/views/FixRuEnKeyboard.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/src/views/SQLSplitInView.vue b/src/views/SQLSplitInView.vue index b09d823..c7bdf3b 100644 --- a/src/views/SQLSplitInView.vue +++ b/src/views/SQLSplitInView.vue @@ -29,7 +29,7 @@
- +

@@ -82,13 +82,12 @@ export default { data[i] = value; } - data = arrayChunk(data, this.toolData.chunkBy); + const chunkBy = this.toolData.chunkBy > 0 ? this.toolData.chunkBy : 1; + data = arrayChunk(data, chunkBy); for (let i = 0; i < data.length; i++) { let chunk = data[i]; - - data[i] = '(' + chunk.join(',') + ')'; }