mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-23 14:59:41 +08:00
fixed #517
This commit is contained in:
parent
3ee1f1b023
commit
6b56155ca5
@ -20,11 +20,13 @@
|
|||||||
"@types/deep-equal": "^1.0.0",
|
"@types/deep-equal": "^1.0.0",
|
||||||
"@types/mz": "0.0.31",
|
"@types/mz": "0.0.31",
|
||||||
"@types/node": "7.0.12",
|
"@types/node": "7.0.12",
|
||||||
|
"@types/slug": "^0.9.1",
|
||||||
"@types/webpack-env": "1.13.0",
|
"@types/webpack-env": "1.13.0",
|
||||||
"dataurl": "0.1.0",
|
"dataurl": "0.1.0",
|
||||||
"deep-equal": "1.0.1",
|
"deep-equal": "1.0.1",
|
||||||
"file-loader": "^0.11.2",
|
"file-loader": "^0.11.2",
|
||||||
"rage-edit": "1.2.0",
|
"rage-edit": "1.2.0",
|
||||||
|
"slug": "^0.9.3",
|
||||||
"uuid": "^3.3.2",
|
"uuid": "^3.3.2",
|
||||||
"xterm": "3.10.1",
|
"xterm": "3.10.1",
|
||||||
"xterm-addon-ligatures-tmp": "^0.1.0-beta-1"
|
"xterm-addon-ligatures-tmp": "^0.1.0-beta-1"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import * as fs from 'mz/fs'
|
import * as fs from 'mz/fs'
|
||||||
|
import slug from 'slug'
|
||||||
import { Injectable } from '@angular/core'
|
import { Injectable } from '@angular/core'
|
||||||
import { HostAppService, Platform } from 'terminus-core'
|
import { HostAppService, Platform } from 'terminus-core'
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ export class POSIXShellsProvider extends ShellProvider {
|
|||||||
.map(x => x.trim())
|
.map(x => x.trim())
|
||||||
.filter(x => x && !x.startsWith('#'))
|
.filter(x => x && !x.startsWith('#'))
|
||||||
.map(x => ({
|
.map(x => ({
|
||||||
id: x,
|
id: slug(x),
|
||||||
name: x,
|
name: x,
|
||||||
command: x,
|
command: x,
|
||||||
args: ['-l'],
|
args: ['-l'],
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import * as fs from 'mz/fs'
|
import * as fs from 'mz/fs'
|
||||||
|
import slug from 'slug'
|
||||||
|
|
||||||
import { Registry } from 'rage-edit'
|
import { Registry } from 'rage-edit'
|
||||||
import { Injectable } from '@angular/core'
|
import { Injectable } from '@angular/core'
|
||||||
import { HostAppService, Platform } from 'terminus-core'
|
import { HostAppService, Platform } from 'terminus-core'
|
||||||
@ -53,7 +55,7 @@ export class WSLShellProvider extends ShellProvider {
|
|||||||
}
|
}
|
||||||
let name = (child as any).$values.distributionname
|
let name = (child as any).$values.distributionname
|
||||||
shells.push({
|
shells.push({
|
||||||
id: `wsl-${name}`,
|
id: `wsl-${slug(name)}`,
|
||||||
name: `WSL / ${name}`,
|
name: `WSL / ${name}`,
|
||||||
command: wslPath,
|
command: wslPath,
|
||||||
args: ['-d', name],
|
args: ['-d', name],
|
||||||
|
@ -24,6 +24,11 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.12.tgz#ae5f67a19c15f752148004db07cbbb372e69efc9"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.12.tgz#ae5f67a19c15f752148004db07cbbb372e69efc9"
|
||||||
integrity sha1-rl9noZwV91IUgATbB8u7Ny5p78k=
|
integrity sha1-rl9noZwV91IUgATbB8u7Ny5p78k=
|
||||||
|
|
||||||
|
"@types/slug@^0.9.1":
|
||||||
|
version "0.9.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/slug/-/slug-0.9.1.tgz#16dbf8b77d73e0a09ce51a96400878f33806ab32"
|
||||||
|
integrity sha512-zR/u8WFQ4/6uCIikjI00a5uB084XjgEGNRAvM4a1BL39Bw9yEiDQFiPS2DgJ8lPDkR2Qd/vZ26dCR9XqlKbDqQ==
|
||||||
|
|
||||||
"@types/webpack-env@1.13.0":
|
"@types/webpack-env@1.13.0":
|
||||||
version "1.13.0"
|
version "1.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.13.0.tgz#3044381647e11ee973c5af2e925323930f691d80"
|
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.13.0.tgz#3044381647e11ee973c5af2e925323930f691d80"
|
||||||
@ -196,6 +201,13 @@ runes@^0.4.2:
|
|||||||
resolved "https://registry.yarnpkg.com/runes/-/runes-0.4.3.tgz#32f7738844bc767b65cc68171528e3373c7bb355"
|
resolved "https://registry.yarnpkg.com/runes/-/runes-0.4.3.tgz#32f7738844bc767b65cc68171528e3373c7bb355"
|
||||||
integrity sha512-K6p9y4ZyL9wPzA+PMDloNQPfoDGTiFYDvdlXznyGKgD10BJpcAosvATKrExRKOrNLgD8E7Um7WGW0lxsnOuNLg==
|
integrity sha512-K6p9y4ZyL9wPzA+PMDloNQPfoDGTiFYDvdlXznyGKgD10BJpcAosvATKrExRKOrNLgD8E7Um7WGW0lxsnOuNLg==
|
||||||
|
|
||||||
|
slug@^0.9.3:
|
||||||
|
version "0.9.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/slug/-/slug-0.9.3.tgz#8c9c773d79367c0188733316cf49fd2b8db40f6a"
|
||||||
|
integrity sha512-DddSQQnUdAofjFOKRT+zsMNrdzdte04G5DUA+NeaUJlPAqR1bWQ22qVfayRxHFiRGR3bUV0wt5VSj4849pGKSw==
|
||||||
|
dependencies:
|
||||||
|
unicode ">= 0.3.1"
|
||||||
|
|
||||||
table-parser@^0.1.3:
|
table-parser@^0.1.3:
|
||||||
version "0.1.3"
|
version "0.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/table-parser/-/table-parser-0.1.3.tgz#0441cfce16a59481684c27d1b5a67ff15a43c7b0"
|
resolved "https://registry.yarnpkg.com/table-parser/-/table-parser-0.1.3.tgz#0441cfce16a59481684c27d1b5a67ff15a43c7b0"
|
||||||
@ -222,6 +234,11 @@ tiny-inflate@^1.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.2.tgz#93d9decffc8805bd57eae4310f0b745e9b6fb3a7"
|
resolved "https://registry.yarnpkg.com/tiny-inflate/-/tiny-inflate-1.0.2.tgz#93d9decffc8805bd57eae4310f0b745e9b6fb3a7"
|
||||||
integrity sha1-k9nez/yIBb1X6uQxDwt0Xptvs6c=
|
integrity sha1-k9nez/yIBb1X6uQxDwt0Xptvs6c=
|
||||||
|
|
||||||
|
"unicode@>= 0.3.1":
|
||||||
|
version "11.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/unicode/-/unicode-11.0.1.tgz#735bd422ec75cf28d396eb224d535d168d5f1db6"
|
||||||
|
integrity sha512-+cHtykLb+eF1yrSLWTwcYBrqJkTfX7Quoyg7Juhe6uylF43ZbMdxMuSHNYlnyLT8T7POAvavgBthzUF9AIaQvQ==
|
||||||
|
|
||||||
uuid@^3.3.2:
|
uuid@^3.3.2:
|
||||||
version "3.3.2"
|
version "3.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
|
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
|
||||||
|
Loading…
Reference in New Issue
Block a user