mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-17 06:46:05 +01:00
wip
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
ul
|
||||
li Multiple #[strong nested panes]
|
||||
li #[strong Progress bars] and activity notifications for tabs
|
||||
li Terminus remembers open tabs and panes where you left off
|
||||
li Tabby remembers open tabs and panes where you left off
|
||||
li Tabs on #[strong any side of the window]
|
||||
li Optional #[strong quake mode] (terminal docked to a side of the screen)
|
||||
li Optional #[strong global hotkey] to focus/hide the terminal
|
||||
|
||||
@@ -8,11 +8,13 @@ import { ActivatedRoute } from '@angular/router'
|
||||
|
||||
class DemoConnector {
|
||||
constructor (targetWindow: Window, private version: Version) {
|
||||
targetWindow['terminusWebDemoDataPath'] = `${this.getDistURL()}/${version.version}/terminus-web-demo/data`
|
||||
targetWindow['tabbyWebDemoDataPath'] = `${this.getDistURL()}/${version.version}/tabby-web-demo/data`
|
||||
}
|
||||
|
||||
async loadConfig (): Promise<string> {
|
||||
return '{}'
|
||||
return `{
|
||||
recoverTabs: false
|
||||
}`
|
||||
}
|
||||
|
||||
async saveConfig (content: string): Promise<void> {
|
||||
@@ -28,12 +30,12 @@ class DemoConnector {
|
||||
|
||||
getPluginsToLoad (): string[] {
|
||||
return [
|
||||
'terminus-core',
|
||||
'terminus-settings',
|
||||
'terminus-terminal',
|
||||
'terminus-community-color-schemes',
|
||||
'terminus-web',
|
||||
'terminus-web-demo',
|
||||
'tabby-core',
|
||||
'tabby-settings',
|
||||
'tabby-terminal',
|
||||
'tabby-community-color-schemes',
|
||||
'tabby-web',
|
||||
'tabby-web-demo',
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -46,7 +48,7 @@ class DemoConnector {
|
||||
export class HomeComponent {
|
||||
@ViewChild('iframe') iframe: ElementRef
|
||||
connector: DemoConnector
|
||||
githubURL = 'https://github.com/Eugeny/terminus'
|
||||
githubURL = 'https://github.com/Eugeny/tabby'
|
||||
releaseURL = `${this.githubURL}/releases/latest`
|
||||
donationURL = 'https://ko-fi.com/eugeny'
|
||||
|
||||
|
||||
@@ -4,6 +4,6 @@ html
|
||||
base(href='/')
|
||||
meta(name='viewport', content='initial-scale=1, minimal-ui, shrink-to-fit=no')
|
||||
script(src='/build/index.js', defer)
|
||||
title Terminus
|
||||
title Tabby
|
||||
body
|
||||
app
|
||||
|
||||
@@ -125,12 +125,12 @@ export class AppConnectorService {
|
||||
|
||||
getPluginsToLoad (): string[] {
|
||||
return [
|
||||
'terminus-core',
|
||||
'terminus-settings',
|
||||
'terminus-terminal',
|
||||
'terminus-ssh',
|
||||
'terminus-community-color-schemes',
|
||||
'terminus-web',
|
||||
'tabby-core',
|
||||
'tabby-settings',
|
||||
'tabby-terminal',
|
||||
'tabby-ssh',
|
||||
'tabby-community-color-schemes',
|
||||
'tabby-web',
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
doctype html
|
||||
html.terminus
|
||||
html.tabby
|
||||
head
|
||||
meta(charset='UTF-8')
|
||||
script(src='/build/terminal.js')
|
||||
@@ -10,8 +10,8 @@ html.terminus
|
||||
app-root(style='display: none')
|
||||
.preload-logo
|
||||
div
|
||||
.terminus-logo
|
||||
h1.terminus-title Terminus
|
||||
.tabby-logo
|
||||
h1.tabby-title Tabby
|
||||
sup α
|
||||
.progress
|
||||
.bar(style='width: 0%')
|
||||
|
||||
@@ -31,17 +31,17 @@ async function start () {
|
||||
await webRequire(`${baseUrl}/web/dist/preload.js`)
|
||||
await webRequire(`${baseUrl}/web/dist/bundle.js`)
|
||||
|
||||
const terminus = window['Terminus']
|
||||
const tabby = window['Tabby']
|
||||
|
||||
const pluginModules = []
|
||||
for (const plugin of connector.getPluginsToLoad()) {
|
||||
pluginModules.push(await terminus.loadPlugin(`${baseUrl}/${plugin}`))
|
||||
pluginModules.push(await tabby.loadPlugin(`${baseUrl}/${plugin}`))
|
||||
}
|
||||
|
||||
document.querySelector('app-root')['style'].display = 'flex'
|
||||
|
||||
const config = connector.loadConfig()
|
||||
terminus.bootstrap({
|
||||
tabby.bootstrap({
|
||||
packageModules: pluginModules,
|
||||
bootstrapData: {
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user